simple-links/Dockerfile
Liam 0258556030
All checks were successful
Publish Docker Image / docker (push) Successful in 4m12s
remove not needed command
2023-10-15 02:02:03 +01:00

24 lines
492 B
Docker

FROM fascinated/docker-images:node-pnpm-latest
ENV NODE_ENV=production
WORKDIR /usr/src/app
# Copy package.json and package-lock.json separately to fully utilize Docker layer caching
COPY package.json ./
COPY pnpm-lock.yaml ./
RUN pnpm install --production --silent
# Opt out of Next.js telemetry
RUN npx next telemetry disable
# Copy the rest of the files
COPY . .
# Environment Variables
ENV NODE_ENV=production
# Expose port 3000
EXPOSE 3000
# Start the app
CMD ["bash", "start.sh"]