forked from LibreLingoCommunity/LibreLingo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (23 loc) · 854 Bytes
/
Copy pathDockerfile
File metadata and controls
28 lines (23 loc) · 854 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
FROM python:3.9
# Copy source code and custom CA certificate
COPY src /LibreLingo/app
COPY courses/ /LibreLingo/courses
# Set working directory
WORKDIR /LibreLingo/app
# Environment variables for SSL/TLS
ENV PIP_TRUSTED_HOST="pypi.org files.pythonhosted.org" \
PATH=$PATH:/root/.local/bin
# disable update check
ENV PDM_CHECK_UPDATE=false
# Update CA certificates
RUN update-ca-certificates && pip install --upgrade pip certifi && \
# Install pip, pipx, poetry, and dependencies
pip3 install --upgrade pip && \
pip install pipx pip-system-certs && \
pipx install poetry && \
poetry install --no-root --no-interaction --no-ansi && \
pip install -U pdm && \
# Install Python modules for LibreLingo
pip install librelingo-yaml-loader && \
pip install librelingo-json-export && \
pip install librelingo-audios