-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (21 loc) · 714 Bytes
/
Dockerfile
File metadata and controls
26 lines (21 loc) · 714 Bytes
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
# Inherit from the official Python 3 image.
FROM python:3
# Expose port 80.
EXPOSE 80
# Set the working directory to /usr/src/app.
WORKDIR /usr/src/app
# Copy setup.py and README.md into /usr/src/app.
# Install application dependencies with pip.
# Build the plantservice package.
# We do these first to reduce image build time during development.
COPY setup.py README.md ./
RUN pip install -e .
RUN python setup.py install
# Copy the app.
COPY . ./
# Run the application with uwsgi on port 80.
CMD [ "uwsgi", "--shared-socket", "[::]:80", \
"--http", "=0", \
"--protocol", "uwsgi", \
"--wsgi", "plantservice:app", \
"--master", "--enable-threads" ]