-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (21 loc) · 765 Bytes
/
Dockerfile
File metadata and controls
30 lines (21 loc) · 765 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
27
28
29
30
# Use an official Python runtime as a parent image
FROM python:3.11-slim
RUN DEBIAN_FRONTEND=noninteractive apt update -y \
&& umask 0002 \
&& DEBIAN_FRONTEND=noninteractive apt install -y procps
# Set the working directory to /app
WORKDIR /app
# Copy the current directory contents into the container at /app
COPY . /app
RUN pip install --upgrade pip && \
pip install "fastapi[standard]"
# Install any needed packages specified in requirements.txt
RUN pip install -r requirements.txt
# Make port 5000 available to the world outside this container
EXPOSE 8000
# Define environment variable
ENV NAME=World
ENV VERSION=dev
# Run app.py when the container launches
CMD ["fastapi", "run", "app.py"]
#harbor.freshbrewed.science/library/pybsposter:0.2.1