Commit e195d8c6 authored by Grant's avatar Grant
Browse files

use the ARG to specify arguments to dev.Dockerfile

parent e8c8a61b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
FROM --platform=linux/amd64 python:3.11-slim
ARG GITLAB_TOKEN=3t2LFTptHcudHsKRsgr8
ARG COMMON_VERSION=0.3.1

RUN apt-get -yqq update && apt-get install -yqq postgresql-client

RUN pip install common-package[all] --index-url https://__token__:3t2LFTptHcudHsKRsgr8@code.ornl.gov/api/v4/projects/10568/packages/pypi/simple
RUN pip install common-package[all]==$COMMON_VERSION --index-url https://__token__:$GITLAB_TOKEN@code.ornl.gov/api/v4/projects/10568/packages/pypi/simple

CMD ["tail", "-f", "/dev/null"]
 No newline at end of file