game-2048/Dockerfile
Lauri Võsandi 7dd203f01a
All checks were successful
continuous-integration/drone Build is passing
Initial commit
2023-01-09 13:45:38 +02:00

20 lines
456 B
Docker

FROM node:alpine AS builder
WORKDIR /usr/src/app
COPY . .
RUN npm install --include=dev
#
# Build mode can be set via NODE_ENV environment variable (development or production)
# See project package.json and webpack.config.js
#
ENV NODE_ENV=development
RUN npm run build
FROM node:alpine
RUN npm install http-server -g
RUN mkdir /public
WORKDIR /public
COPY --from=builder /usr/src/app/dist/ ./
EXPOSE 8080
USER 1000
CMD ["http-server"]