Skip to content

Instantly share code, notes, and snippets.

@claudiajkang
Created February 17, 2018 12:48
Show Gist options
  • Save claudiajkang/d17dbca2c8534743623dac9db26cdb4d to your computer and use it in GitHub Desktop.
Save claudiajkang/d17dbca2c8534743623dac9db26cdb4d to your computer and use it in GitHub Desktop.
# debuggin ver Dockerfile
FROM ubuntu:16.04
MAINTAINER floweryroads@gmail.com
RUN apt-get -y update
RUN apt-get install -y curl
RUN curl -sL https://deb.nodesource.com/setup_9.x | bash -
RUN apt-get install -y git python3-pip python3-dev nodejs
RUN echo '{ "allow_root": true }' > /root/.bowerrc
RUN npm install -g bower
COPY requirements.txt /requirements.txt
RUN pip3 install -r /requirements.txt
COPY . /app
WORKDIR /app
RUN npm install
RUN bower install
RUN npm run node-sass
ENTRYPOINT ["python3"]
CMD ["server.py"]
@claudiajkang
Copy link
Author

claudiajkang commented Feb 19, 2018

docker run --name=database -d -e MYSQL_DATABASE=FloweryRoads -e MYSQL_ROOT_PASSWORD=Dt17-2letm mysql/mysql-server:5.7

docker run --name=api -d -p 5001:8081 -e LANG=en_US.UTF-8 --link database:db api

docker run --name=api -d -p 5000:8080 front

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment