jabe/Dockerfile

15 lines
357 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
RUN cp -r /tmp/posts /app/default_posts
RUN cp -r /tmp/node_modules /app
RUN cp -r /tmp/templates /app/default_templates
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"]