Files
seasonedShows/Dockerfile
Kevin Midboe 0a4248bf30 Setup dockerfile for seasoned api project
TODO remove apt installing redis and running service internally
2022-08-16 00:41:33 +02:00

23 lines
435 B
Docker

FROM node:18
RUN mkdir -p /opt/seasonedShows
WORKDIR /opt/seasonedShows
COPY seasoned_api/ .
RUN apt update
RUN apt install node-pre-gyp -y
RUN yarn
RUN cp conf/development.json.example conf/development.json
# Replace with external redis
RUN apt install redis-server systemctl -y
RUN systemctl enable redis-server
EXPOSE 31459
CMD ["yarn", "start"]
LABEL org.opencontainers.image.source https://github.com/kevinmidboe/seasoned