-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (18 loc) · 639 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
# Use an official Python runtime as a parent image
FROM python:3.8-slim
# Install pipenv
RUN pip install --no-cache-dir pipenv
# Set the working directory to /app
WORKDIR /app
# Copy the current directory contents into the container at /app
COPY Pipfile* app.py /app/
# Install any needed packages specified in Pipfile.lock
RUN pipenv install --system --deploy
# Make port 8088 available to the world outside this container
EXPOSE 8088
# Define environment variable
ENV NAME World
# Change User to a non-root one to comply with Security Policies on Cargo
USER 1001
# Run app.py when the container launches
CMD ["python", "app.py"]