-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3d50bc2
commit e69c01a
Showing
2 changed files
with
16 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,28 @@ | ||
FROM python:3.12 | ||
FROM python:3.11 | ||
|
||
WORKDIR /app | ||
|
||
COPY . /app | ||
|
||
# Configure INL certs and environment variables | ||
RUN wget -q -P /usr/local/share/ca-certificates/ http://certstore.inl.gov/pki/CAINLROOT_B64.crt | ||
RUN /usr/sbin/update-ca-certificates | ||
ENV NODE_EXTRA_CA_CERTS=/etc/ssl/certs/ca-certificates.crt | ||
ENV REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt | ||
ENV CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt | ||
ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt | ||
ENV SSL_CERT_DIR=/etc/ssl/certs/ | ||
|
||
# Install server dependencies | ||
RUN apt update && apt install -y \ | ||
build-essential \ | ||
gcc \ | ||
libpq-dev \ | ||
postgresql-devel \ | ||
python3-dev | ||
|
||
# Install python dependencies | ||
RUN pip install --upgrade pip setuptools wheel | ||
RUN pip install GDX2py | ||
RUN pip install spinedb_api --verbose | ||
|
||
ENTRYPOINT [ "python", "src/app.py" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters