disseminate/Dockerfile

15 lines
383 B
Docker
Raw Normal View History

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