jabe/Dockerfile

15 lines
383 B
Text
Raw Normal View History

2024-03-29 05:29:56 +00:00
FROM node:21-alpine3.18
WORKDIR /tmp
COPY . /tmp
RUN yarn install --production
RUN yarn global add typescript
RUN tsc
2024-03-29 05:51:46 +00:00
RUN mkdir /app
RUN cp -r /tmp/build/* /app
2024-03-29 13:15:24 +00:00
RUN cp -r /tmp/data/default_posts /app/default_posts
2024-03-29 05:51:46 +00:00
RUN cp -r /tmp/node_modules /app
2024-03-29 13:15:24 +00:00
RUN cp -r /tmp/data/default_templates /app/default_templates
2024-03-29 05:51:46 +00:00
COPY ./scripts/docker_run.sh /app/run.sh
2024-03-29 05:29:56 +00:00
WORKDIR /app
2024-03-29 05:51:46 +00:00
CMD ["/app/run.sh"]