starbase-81/dockerfile

23 lines
331 B
Plaintext
Raw Normal View History

2023-04-20 22:59:51 +00:00
FROM node:18-alpine
2023-04-20 05:40:12 +00:00
WORKDIR /app
COPY package.json .
RUN npm i
COPY . .
ENV NODE_ENV production
2023-04-20 05:40:12 +00:00
ENV TITLE "My Website"
2023-04-21 04:44:37 +00:00
ENV LOGO "/logo.png"
2023-04-21 21:20:58 +00:00
ENV HEADER "true"
ENV CATEGORIES "normal"
ENV BGCOLOR "#f8fafc"
EXPOSE 4173
2023-04-20 05:40:12 +00:00
2023-04-21 00:53:59 +00:00
RUN chmod +x /app/docker-entrypoint.sh
ENTRYPOINT ["/app/docker-entrypoint.sh"]
CMD ["npm", "run", "start"]