-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (30 loc) · 1.08 KB
/
Dockerfile
File metadata and controls
32 lines (30 loc) · 1.08 KB
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
31
32
ARG BASE_TAG=latest
FROM ghcr.io/lsst-dm/prompt-base:${BASE_TAG}
ENV PYTHONUNBUFFERED=True
ENV APP_HOME=/app
ENV PROMPT_PROCESSING_DIR=$APP_HOME
ENV PYTHONPATH=$APP_HOME
ENV XDG_CONFIG_HOME=$APP_HOME
ARG PORT
WORKDIR $APP_HOME
COPY python/activator activator/
# Initializer is not run by this container, but its code is needed to generate consistent version hashes.
COPY python/initializer initializer/
COPY python/shared shared/
COPY pipelines pipelines/
COPY config/astropy.cfg $XDG_CONFIG_HOME/astropy/
COPY config/gunicorn.conf.py ./
COPY maps maps/
USER root
RUN groupadd -g 4085 -o rubin_users \
&& useradd -u 17951 -g 4085 lsstsvc1 \
# Ensure that the target directories and files created by this Dockerfile are owned by lsstsvc1
&& chown -R lsstsvc1:rubin_users $APP_HOME
USER lsstsvc1
# Create /home/lsstsvc1/.eups directory in the container
RUN source /opt/lsst/software/stack/loadLSST.bash \
&& setup lsst_distrib
# Can't use a here-document with CMD
CMD source /opt/lsst/software/stack/loadLSST.bash \
&& setup lsst_distrib \
&& exec python3 -m activator.driver_keda