-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
21 lines (15 loc) · 979 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Dockerfile for building a Docker image hosting the image-to-image generation server-side application
# Select an official Python 3.9 runtime image as foundation
FROM python:3.9
# Define a logical workspace directory within the container
WORKDIR /code
# Copy the curated requirements.txt manifest listing all dependencies required by the application
COPY ./server/requirements.txt /code/requirements.txt
# Install packaged software prerequisites
RUN pip install --upgrade --no-cache-dir -r /code/requirements.txt
# Install packaged software prerequisites
RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
# Transfer the fully qualified server application code tree onto the container filesystem
COPY ./server /code/app
# Declare a startup script invoking UVICORN application server, exposing the public interface, attaching to port 80, and activating development mode
CMD ["uvicorn", "app.server_side:app", "--host", "0.0.0.0", "--port", "80", "--reload"]