1
0
mirror of https://github.com/robonen/canvas-3d.git synced 2026-03-20 02:44:40 +00:00

feat(repo): two application replicas in docker-compose

This commit is contained in:
2022-11-14 05:18:27 +07:00
parent 36f2503002
commit 8d3b3f9fe3
6 changed files with 39 additions and 9 deletions

View File

@@ -5,6 +5,7 @@ FROM node:${NODE_VERSION} AS builder
WORKDIR /build
# See .dockerignore
COPY . .
RUN npm cache clean --force && npm ci && npm run build
@@ -19,7 +20,6 @@ COPY --from=builder /build/src/.output .
ENV HOST=0.0.0.0
ENV PORT=3000
VOLUME /app
EXPOSE 3000
CMD ["node", "./server/index.mjs"]
ENTRYPOINT ["node", "./server/index.mjs"]