Skip to content
Snippets Groups Projects
Commit 8bc88e1b authored by Thomas  MENARD's avatar Thomas MENARD
Browse files

Add Dockerfile, gitlab-ci

parent c87c4171
No related branches found
No related tags found
1 merge request!1Update with a working example
......@@ -10,8 +10,6 @@ FROM python:3
RUN apt-get update && apt-get upgrade -y && apt-get install \
-y --no-install-recommends python3
ENV PATH /env/bin:$PATH
# Install pip dependencies
ADD requirements.txt /app/requirements.txt
RUN pip install --default-timeout=100 --upgrade pip && pip install -r /app/requirements.txt
......
......@@ -109,18 +109,18 @@ spec:
- name: DATABASE_NAME
valueFrom:
secretKeyRef:
name: postgresql-credentials
key: database
name: postgresql-credentials
key: database
- name: DATABASE_USER
valueFrom:
secretKeyRef:
name: postgresql-credentials
key: username
name: postgresql-credentials
key: username
- name: DATABASE_PASSWORD
valueFrom:
secretKeyRef:
name: postgresql-credentials
key: password
name: postgresql-credentials
key: password
ports:
- containerPort: 8080
volumes:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment