jabe/Dockerfile

16 lines
400 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
2024-03-29 19:12:14 +00:00
RUN cp -r /tmp/*.json /app
RUN cp -r /tmp/build/src /app
RUN cp -r /tmp/src/views /app/src/
RUN cp -r /tmp/data.template/ /app/data.template
2024-03-29 05:51:46 +00:00
RUN cp -r /tmp/node_modules /app
COPY ./scripts/docker_run.sh /app/run.sh
2024-03-29 05:29:56 +00:00
WORKDIR /app
2024-03-29 19:12:14 +00:00
CMD ["npm", "run", "docker:prod:run"]