Created
October 13, 2020 20:40
-
-
Save santrancisco/5a29edc7160f7b27a6f901f04a9ed33c to your computer and use it in GitHub Desktop.
Simple Keatram-Open Dockerfile to play with
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:latest | |
RUN apt update | |
RUN apt install -y mongodb net-tools vim | |
RUN git clone --depth 1 https://github.com/Kaetram/Kaetram-Open /app | |
# COPY . /app | |
WORKDIR /app | |
RUN cp /app/packages/server/.env-dist /app/packages/server/.env | |
RUN cp /app/packages/client/.env.defaults /app/packages/client/.env | |
RUN sed -i "/^ *port: 9000/i host: '0.0.0.0'," /app/packages/client/webpack.config.ts | |
RUN yarn install | |
CMD service mongodb start && npm run dev | |
# To build and run: | |
# docker build --rm . -t kaetram | |
# docker run -p 9000:9000 -p 9001:9001 --rm -it kaetram |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment