Created
June 9, 2018 18:29
-
-
Save ozcanyarimdunya/4fe7d63c90b7252a008ef830a9e92d96 to your computer and use it in GitHub Desktop.
Docker
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
.idea/ | |
venv/ |
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
version: '3' | |
services: | |
app: | |
build: . | |
command: python main.py | |
volumes: | |
- .:/code |
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 python:3.6 | |
ENV PYTHONUNBUFFERED 1 | |
# To not run pip everytime | |
COPY requirements.txt /code/requirements.txt | |
WORKDIR /code | |
RUN pip install -r requirements.txt | |
# remain | |
COPY . /code | |
WORKDIR /code | |
RUN ls |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment