forked from bcgov/wps
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.ubuntu
More file actions
26 lines (19 loc) · 836 Bytes
/
Dockerfile.ubuntu
File metadata and controls
26 lines (19 loc) · 836 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
# Currenly only used by the c-haines cronjob, which needs a new version of gdal than is provided
# by the debian image used to serve up the api.
ARG DOCKER_IMAGE=image-registry.openshift-image-registry.svc:5000/e1e498-tools/ubuntu-base:20.04
# Using local docker image to speed up build. See openshift/unicorn-base for details.
FROM ${DOCKER_IMAGE}
# Copy poetry files.
COPY ./api/pyproject.toml ./api/poetry.lock /tmp/
# Make sure we have an up to date pip
RUN cd /tmp && \
poetry run python3 -m pip install --upgrade pip
# Poetry fails to install cryptography correctly on ubuntu 20.04. If we make
# sure it's installed globally first, then it works.
RUN python3 -m pip install cryptography
# Install dependancies.
RUN cd /tmp && \
poetry install --no-root --no-dev
# Copy the app:
COPY ./api/app /app/app
WORKDIR /app