Commit b3b8433d authored by Stefan Bienert's avatar Stefan Bienert
Browse files

Use .env file for cathapi container

parent 4d0a9ccf
...@@ -8,6 +8,8 @@ FROM python:3.7.3-slim-stretch ...@@ -8,6 +8,8 @@ FROM python:3.7.3-slim-stretch
# where # where
# - "-t cathapi" just defines a name/ tag # - "-t cathapi" just defines a name/ tag
# #
# Be aware: some (secret) environment variables are passed by an .env file
# this is copied here from cathapi/Docker/cathapi/.env .
# Get API code inside the image # Get API code inside the image
ENV SRC_DIR="/cathapi" ENV SRC_DIR="/cathapi"
...@@ -45,6 +47,8 @@ RUN /bin/date | /usr/bin/md5sum > secret_key.txt ...@@ -45,6 +47,8 @@ RUN /bin/date | /usr/bin/md5sum > secret_key.txt
COPY Docker/cathapi/entrypoint.sh $SRC_DIR COPY Docker/cathapi/entrypoint.sh $SRC_DIR
COPY Docker/cathapi/.env $SRC_DIR
# Create dedicated user # Create dedicated user
RUN adduser --system --ingroup users cathapi && \ RUN adduser --system --ingroup users cathapi && \
# Create volume mountpoint for the (still sqlite) database # Create volume mountpoint for the (still sqlite) database
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment