jabe/Dockerfile
hexlocation's laptop (asiago) 6e82e1fbe8 WOHOO actual dev scripts now
2024-03-29 15:12:14 -04:00

15 lines
400 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/*.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
RUN cp -r /tmp/node_modules /app
COPY ./scripts/docker_run.sh /app/run.sh
WORKDIR /app
CMD ["npm", "run", "docker:prod:run"]