jabe/Dockerfile
hexlocation's laptop (asiago) 57016f4f3f doing stuff l8r
2024-03-29 09:15:24 -04:00

14 lines
383 B
Docker

FROM node:21-alpine3.18
WORKDIR /tmp
COPY . /tmp
RUN yarn install --production
RUN yarn global add typescript
RUN tsc
RUN mkdir /app
RUN cp -r /tmp/build/* /app
RUN cp -r /tmp/data/default_posts /app/default_posts
RUN cp -r /tmp/node_modules /app
RUN cp -r /tmp/data/default_templates /app/default_templates
COPY ./scripts/docker_run.sh /app/run.sh
WORKDIR /app
CMD ["/app/run.sh"]