Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM node:16.20.2-alpine3.18

WORKDIR /app

COPY package*.json ./
RUN npm config set cache /app/.npm-cache && npm install

COPY . .

USER app

EXPOSE 8000

CMD ["npm", "start"]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
CMD ["npm", "start"]
CMD ["npm", "start"]
```FROM node:16.20.2-alpine3.18
WORKDIR /app
COPY package*.json ./
RUN npm config set cache /app/.npm-cache && npm install
COPY . .
USER app
EXPOSE 8000
CMD ["npm", "start"]