-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update python version in runtime.txt and Dockerfile, fix sqlalchemy 1…
….4.x bug
- Loading branch information
Showing
5 changed files
with
16 additions
and
11 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,19 @@ | ||
FROM python:3.8.3-alpine3.12 | ||
FROM python:3.9-alpine | ||
|
||
LABEL maintainer="[email protected]" | ||
|
||
# Env | ||
RUN export DATABASE_URL="postgres://${DB_USER}:${DB_PASSWORD}@postgres:${DB_PORT}/${DB_NAME}" \ | ||
RUN export DATABASE_URL="postgresql://${DB_USER}:${DB_PASSWORD}@postgres:${DB_PORT}/${DB_NAME}" \ | ||
&& export REDIS_URL="redis://redis:6379/0" | ||
|
||
# update and install packages | ||
RUN apk update --no-cache \ | ||
&& apk add --no-cache postgresql-dev build-base g++ libffi-dev | ||
|
||
# Add a new low-privileged user | ||
RUN adduser --shell /sbin/login www-data -DH | ||
# ensure www-data user exists (low-privileged user) | ||
RUN set -x ; \ | ||
addgroup -g 82 -S www-data ; \ | ||
adduser -u 82 -D -S -G www-data www-data && exit 0 ; exit 1 | ||
|
||
# Install RTB-CTF-Framework | ||
WORKDIR /usr/src/app | ||
|
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
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
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 +1 @@ | ||
python-3.8.7 | ||
python-3.9.6 |
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