-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (27 loc) · 988 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
31
32
33
34
35
36
# SPDX-FileCopyrightText: 2022 Renaissance Computing Institute. All rights reserved.
# SPDX-FileCopyrightText: 2023 Renaissance Computing Institute. All rights reserved.
# SPDX-FileCopyrightText: 2024 Renaissance Computing Institute. All rights reserved.
#
# SPDX-License-Identifier: GPL-3.0-or-later
# SPDX-License-Identifier: LicenseRef-RENCI
# SPDX-License-Identifier: MIT
# This Dockerfile is used to build the APSVIZ-Collab-sync image
# leverage the renci python base image
FROM python:3.12.7-slim
# update the image base
RUN apt-get update && apt-get -y upgrade
# clear the apt cache
RUN apt-get clean
# create/switch to a non-root user
RUN useradd --create-home -u 1000 nru
USER nru
# set up requirements
WORKDIR /repo/APSVIZ-Collab-sync
# install required python packages
ADD requirements.txt .
RUN pip install -r requirements.txt
# Copy in the rest of the code
COPY main.py main.py
COPY src src
# set the python path for source
ENV PYTHONPATH="/repo/APSVIZ-Collab-sync"