Skip to content

Instantly share code, notes, and snippets.

@ozcanyarimdunya
Created June 9, 2018 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ozcanyarimdunya/4fe7d63c90b7252a008ef830a9e92d96 to your computer and use it in GitHub Desktop.
Save ozcanyarimdunya/4fe7d63c90b7252a008ef830a9e92d96 to your computer and use it in GitHub Desktop.
Docker
version: '3'
services:
app:
build: .
command: python main.py
volumes:
- .:/code
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