-
Notifications
You must be signed in to change notification settings - Fork 93
/
Copy pathDockerfile
28 lines (25 loc) · 940 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# FROM python:3
# ENV API_ENV 1
# RUN mkdir /code
# WORKDIR /Users/admin/Desktop/API_ENV/ecommerce
# COPY requirements.txt /code/
# RUN pip install -r requirements.txt
# RUN pip install --upgrade pip
# COPY . /Users/admin/Desktop/API_ENV/ecommerce/
# — — — — — Dockerfile
# We Use an official Python runtime as a parent image
FROM python:3.7
# The enviroment variable ensures that the python output is set straight
# to the terminal with out buffering it first
ENV PYTHONUNBUFFERED 1
# create root directory for our project in the container
RUN mkdir /ecommerce
# Set the working directory to /music_service
WORKDIR /ecommerce
# Copy the current directory contents into the container at /music_service
ADD . /ecommerce/
# Install any needed packages specified in requirements.txt
RUN pip install -r requirements.txt
# RUN pip install --upgrade pip
EXPOSE 8000
CMD exec gunicorn ecommerce.wsgi:application — bind 0.0.0.0:8000