Tony Grosinger
e666588cc3
All checks were successful
Build Production Image / Build Production Image (push) Successful in 58s
20 lines
401 B
Docker
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"] |