diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 3434343..e31ed45 100755 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -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], diff --git a/docker/Dockerfile b/docker/Dockerfile index 960b2b6..0088a64 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -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