Created
February 5, 2020 15:45
-
-
Save markoshorro/bded9afd34ec60fd75ee98034aafb11d to your computer and use it in GitHub Desktop.
Configuración simple Docker Programación Integrativa
This file contains hidden or 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: | |
web: | |
build: . | |
command: "python3 manage.py runserver 0.0.0.0:8000 | |
volumes: | |
- .:/code | |
ports: | |
- "8000:8000" |
This file contains hidden or 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 | |
ENV PYTHONUNBUFFERED 1 | |
RUN mkdir /code | |
WORKDIR /code | |
ADD requirements.txt /code/ | |
RUN pip install -r requirements.txt | |
ADD . /code/ |
This file contains hidden or 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
Django>=2.1 | |
psycopg2 | |
spotipy | |
pandas | |
matplotlib |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Con estos ficheros podríais crear una imagen y subirla al Docker Hub.
Lo ideal sería, después, tener un script que realizase todas las acciones: