-
-
Notifications
You must be signed in to change notification settings - Fork 104
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (17 loc) · 719 Bytes
/
Dockerfile
File metadata and controls
26 lines (17 loc) · 719 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
FROM python:3.10-slim
WORKDIR /app
RUN apt-get update && apt-get install -y nginx nodejs npm gcc g++ make wget && \
rm -rf /var/lib/apt/lists/*
RUN wget https://github.com/busyloop/envcat/releases/download/v1.1.0/envcat-1.1.0.linux-x86_64 \
&& chmod +x envcat-1.1.0.linux-x86_64 \
&& mv envcat-1.1.0.linux-x86_64 /usr/bin/envcat \
&& ln -sf /usr/bin/envcat /usr/bin/envtpl
COPY requirements.txt /app/requirements.txt
RUN pip install -r /app/requirements.txt
COPY web /app/web
RUN cd /app/web && npm install && npm run build
COPY server /app/server
# Copy the Nginx configuration file into the container
COPY nginx.conf /etc/nginx/nginx.conf.template
WORKDIR /app/server
CMD ["./entrypoint.sh"]