-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (16 loc) · 654 Bytes
/
Dockerfile
File metadata and controls
27 lines (16 loc) · 654 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
FROM python:3.9-slim
ENV PORT=8080
USER root
WORKDIR /app
COPY . .
RUN pip install --no-cache-dir -r requirements.txt
RUN mkdir /data && mkdir /data/myGPTReader
RUN apt-get update && apt-get install -y wget
RUN wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.22_amd64.deb \
&& dpkg -i libssl1.1_1.1.1f-1ubuntu2.22_amd64.deb \
&& wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl-dev_1.1.1f-1ubuntu2.22_amd64.deb \
&& dpkg -i libssl-dev_1.1.1f-1ubuntu2.22_amd64.deb
RUN apt-get clean && rm -rf /var/lib/apt/lists/* \
&& rm *.deb
EXPOSE 8080
CMD ["gunicorn", "app.server:app"]