-
Notifications
You must be signed in to change notification settings - Fork 46
/
Dockerfile
66 lines (42 loc) · 1.34 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
60
61
62
63
64
65
66
FROM oraclelinux:8.9
ARG PUBLIC_URL_ARG=
ENV PUBLIC_URL=$PUBLIC_URL_ARG
# Create app directory
WORKDIR /usr/src/app
# Bundle app source
COPY . .
#############################
# Python
#############################
# micromamba
RUN dnf install -y bzip2
RUN mkdir -p /opt/micromamba/bin
RUN curl -Ls https://micro.mamba.pm/api/micromamba/linux-64/latest | tar -C /opt/micromamba -xvj bin/micromamba
RUN MAMBA_ROOT_PREFIX="/opt/micromamba"; /opt/micromamba/bin/micromamba shell init -s bash
RUN echo 'export PATH="/opt/micromamba/bin:$PATH"' >> /root/.bashrc && echo 'export MAMBA_ROOT_PREFIX="/opt/micromamba"' >> /root/.bashrc
RUN source ~/.bashrc && micromamba env create -y --name mmgis --file=python-environment.yml
#############################
# Node
#############################
RUN dnf module install nodejs:20
#############################
# MMGIS
#############################
RUN npm install
# build
RUN npm run build
#############################
# MMGIS Configure
#############################
WORKDIR /usr/src/app/configure
# Clean out configure build folder
RUN rm -rf /usr/src/app/configure/build/*
RUN npm install
# Build Configure Site
RUN npm run build
##
WORKDIR /usr/src/app/
#
RUN chmod 755 _docker-entrypoint.sh
EXPOSE 8888
CMD [ "./_docker-entrypoint.sh" ]