-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (26 loc) · 759 Bytes
/
Dockerfile
File metadata and controls
32 lines (26 loc) · 759 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
31
32
#
# Copyright 2023, Route 1337 LLC, All Rights Reserved.
#
# Maintainers:
# - Matthew Ahrenstein: @ahrenstein
#
# See LICENSE
#
FROM python:3.12
LABEL maintainer = "Route 1337 LLC <@route1337>"
# Copy the source code and poetry config to /app
COPY ./SourceCode/ /app
COPY pyproject.toml /app/
# Install some required packages
RUN apt-get clean && rm -rf /var/lib/apt/lists/* && apt-get update && apt-get install -y openssl
RUN mkdir /cert
# Configure the Python environment using poetry
WORKDIR /app
ENV PYTHONPATH=${PYTHONPATH}:${PWD}
RUN pip3 install poetry
RUN poetry config virtualenvs.create false
RUN poetry install --no-root
# Make sure logging to stdout works
ENV PYTHONUNBUFFERED=0
# Run the Flask server
CMD ["python", "-u", "/app/server.py"]