Skip to content

Commit

Permalink
Updated to use node 18
Browse files Browse the repository at this point in the history
  • Loading branch information
bropat committed Aug 1, 2023
1 parent a9f0ba0 commit b348baa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// https://github.com/microsoft/vscode-dev-containers/tree/v0.158.0/containers/typescript-node
{
"name": "Eufy Security WS Server",
"image": "mcr.microsoft.com/vscode/devcontainers/javascript-node:16",
"image": "mcr.microsoft.com/vscode/devcontainers/javascript-node:18",
"context": "..",
"postCreateCommand": "npm install",
"forwardPorts": [3000],
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM node:16-alpine as build
FROM node:18-alpine as build
WORKDIR /tmp
COPY . .
RUN npm ci && npm run build

FROM node:16-alpine
FROM node:18-alpine
WORKDIR /usr/src/app
COPY --from=build /tmp/dist ./dist
COPY --from=build /tmp/docker/run.sh ./run.sh
Expand Down

0 comments on commit b348baa

Please sign in to comment.