-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathDockerfile.wix
34 lines (25 loc) · 889 Bytes
/
Dockerfile.wix
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
31
32
33
34
FROM python:3.12-slim-bullseye
# Install dependencies
RUN apt-get update
RUN apt-get install -y nginx supervisor
RUN apt-get clean
RUN rm -rf /var/lib/apt/lists/*
# Set the working directory in the container
WORKDIR /app
# Supervisor configurations
COPY docker/wix/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
# Nginx configurations
COPY docker/wix/nginx.conf /etc/nginx/nginx.conf
COPY docker/wix/default /etc/nginx/sites-available/default
# Copy the requirements.txt into the container at /app/requirements.txt
COPY requirements_freeze.txt requirements.txt
# Upgrade pip
RUN pip install --upgrade pip
# Install pip packages
RUN pip install -r requirements.txt
# Copy the current directory contents into the container at /app
COPY .streamlit/ ./.streamlit/
COPY src/ ./src/
COPY frontend/ /var/www/callback/
# Command to run supervisord
CMD ["/usr/bin/supervisord"]