Skip to content

Commit 493adfd

Browse files
VincentLideboKjellmanvinkj1
authored andcommitted
Merge pull request #28 from Vastra-Gotalandsregionen/AI-633
AI-633: Add change user in Dockerfile
2 parents 2f54670 + cda49f4 commit 493adfd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

{{ cookiecutter.repo_name }}/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
{% if cookiecutter.image == 'Tensorflow' %}FROM registry.git.vgregion.se/aiplattform/images/tensorflow:0.2.0{% endif %}
2-
{% if cookiecutter.image == 'PyTorch' %}FROM registry.git.vgregion.se/aiplattform/images/pytorch:0.3.1{% endif %}
1+
{% if cookiecutter.image == 'Tensorflow' %}FROM registry.git.vgregion.se/aiplattform/images/tensorflow:0.2.1{% endif %}
2+
{% if cookiecutter.image == 'PyTorch' %}FROM registry.git.vgregion.se/aiplattform/images/pytorch:0.3.2{% endif %}
33
{% if cookiecutter.image == 'R' %}FROM registry.git.vgregion.se/aiplattform/images/r:0.2.0{% endif %}
44
ENV GID=1000
55
ENV UID=1000
66

77
RUN apt -y update \
88
&& apt install -y --no-install-recommends python3-pip git openssl {% if cookiecutter.image != 'R' %}\
99
&& addgroup --gid $GID researcher \
10-
&& adduser --home /workspace --shell /bin/bash --disabled-password --gecos '' --uid $UID --gid $GID researcher
10+
&& adduser --home /workspace --shell /bin/bash --disabled-password --gecos '' --uid $UID --gid $GID researcher \
11+
&& chown -R 1000:1000 /workspace
1112
{% endif %}
1213

1314
ADD http://aiav2.vgregion.se/VGC%20Root%20CA%20v2.crt /tmp/vgc_root.der

0 commit comments

Comments
 (0)