www.byjp.me/indiekit/Dockerfile
2024-07-15 16:09:25 +01:00

19 lines
358 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

FROM node:20-alpine
WORKDIR /usr/src/app
ENV NODE_ENV=production
COPY package*.json ./
# Cant use `npm ci` due to https://github.com/npm/cli/issues/4828
RUN npm i --omit=dev --no-fund
# Copy Indiekit config over
COPY . .
ENV SECRET=
ENV PASSWORD_SECRET=
ENV MONGO_URL=
ENV SITE=https://www.byjp.me/
ENV PORT=80
EXPOSE 80
CMD [ "npm", "run", "start" ]