west-sound-hall/Dockerfile
Tony Grosinger e666588cc3
All checks were successful
Build Production Image / Build Production Image (push) Successful in 58s
Production build at container run time
2024-01-14 12:39:49 -08:00

20 lines
401 B
Docker

FROM docker.io/library/node:18-alpine AS build-env
ENV NODE_ENV production
ENV PORT 3000
ENV NEXT_TELEMETRY_DISABLED 1
WORKDIR /app
# Building app
COPY package*.json ./
# Install node modules
# Note: We also install dev deps as TypeScript may be needed
RUN npm install
# Copy files. Use dockerignore to avoid copying node_modules
COPY . .
# Run app command
CMD ["/bin/ash", "/app/entrypoint.sh"]