-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
30 lines (20 loc) · 991 Bytes
/
Dockerfile
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
27
28
29
30
##### BASE IMAGE #####
FROM elixircloud/foca:v0.7.0-py3.9
##### METADATA #####
LABEL software="Pubgrade"
LABEL software.description="Pubgrade is a decoupled, publish-subscribe-based continuous integration (CI) and continuous delivery (CD) microservice that allows developers to notify deploments of available updates."
LABEL software.website="https://github.com/elixir-cloud-aai/Pubgrade"
LABEL software.license="https://spdx.org/licenses/Apache-2.0"
LABEL maintainer="akash2237778@gmail.com"
LABEL maintainer.organisation="ELIXIR Cloud & AAI"
RUN groupadd -r pubgrade --gid 1000 && useradd -d /home/pubgrade -ms /bin/bash -r -g pubgrade pubgrade --uid 1000
## Copy remaining app files
COPY --chown=1000:1000 ./ /app
## Install app
RUN cd /app \
&& python setup.py develop \
&& chmod g+w /app/pubgrade/api/ \
&& pip install -r requirements.txt
RUN mkdir /pubgrade_temp_files && chown 1000 /pubgrade_temp_files
USER 1000
CMD ["bash", "-c", "cd /app/pubgrade; python app.py"]