-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
59 lines (43 loc) · 2.05 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
FROM ghcr.io/cienciadedatosysalud/aspire:latest
ARG pipeline_version="Non-versioned"
ENV PIPELINE_VERSION=$pipeline_version
#########################################################
# Dependency management: Installing system libraries #
#########################################################
USER root
RUN apt update && apt install -y --no-install-recommends \
&& apt install -y xdg-utils \
&& rm -rf /var/lib/apt/lists/*
#############################################################
# Customization: Set time zone within the container #
#############################################################
# Set time Europe/Madrid
RUN micromamba -n aspire install tzdata -c conda-forge && micromamba clean --all --yes \
&& rm -rf /opt/conda/conda-meta
ENV TZ=Europe/Madrid
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN micromamba run -n aspire date
#############################################################
# Dependency management: Installing declared dependencies #
#############################################################
USER $MAMBA_USER
COPY --chown=$MAMBA_USER:$MAMBA_USER env_project.yaml /tmp/env_project.yaml
# Installing dependencies
RUN micromamba install -y -n aspire -f /tmp/env_project.yaml \
&& micromamba clean --all --yes \
&& rm -rf /opt/conda/conda-meta /tmp/env_project.yaml
#########################################################
# Copy the folder structure to the appropriate path #
#########################################################
COPY --chown=$MAMBA_USER:$MAMBA_USER . /home/$MAMBA_USER/projects/your_project
# Change the folder name 'your_project' to a valid folder name that refers to your project.
################################
# Customization: Add logo #
################################
COPY --chown=$MAMBA_USER:$MAMBA_USER main_logo.png /temp/main_logo.png
RUN cp /temp/main_logo.png $(find front -name main_logo**)
ENV APP_PORT=3000
ENV APP_HOST=0.0.0.0
EXPOSE 3000
WORKDIR /home/$MAMBA_USER
ENTRYPOINT ["micromamba","run","-n","aspire","/opt/entrypoint.sh"]