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 . .
|
|
|
|
|
2023-04-20 22:47:29 +00:00
|
|
|
ENV NODE_ENV production
|
2023-04-20 05:40:12 +00:00
|
|
|
|
2023-04-20 23:42:30 +00:00
|
|
|
ENV TITLE "My Website"
|
2023-04-21 04:43:30 +00:00
|
|
|
ENV LOGOFILE "/logo.png"
|
2023-04-20 23:42:30 +00:00
|
|
|
|
2023-04-20 05:46:55 +00:00
|
|
|
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"]
|
2023-04-20 23:42:30 +00:00
|
|
|
|
2023-04-20 05:46:55 +00:00
|
|
|
CMD ["npm", "run", "start"]
|