west-sound-hall/Dockerfile

20 lines
401 B
Docker
Raw Permalink Normal View History

2024-01-08 18:42:56 -08:00
FROM docker.io/library/node:18-alpine AS build-env
2024-01-14 12:39:49 -08:00
ENV NODE_ENV production
ENV PORT 3000
2024-01-08 18:42:56 -08:00
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
2024-01-14 12:39:49 -08:00
CMD ["/bin/ash", "/app/entrypoint.sh"]