Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 9 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,16 @@ COPY python-environment.yml ./
# Node.js
#############################

RUN dnf module install -y nodejs:20
RUN dnf module install -y nodejs:24

#############################
# Python (micromamba)
#############################

# Setup micromamba for Python environment
RUN mkdir -p /opt/micromamba/bin && \
MICROMAMBA_URL="https://micro.mamba.pm/api/micromamba/linux-64/latest" && \
if [ "${TARGETARCH}" = "arm64" ]; then \
MICROMAMBA_URL="https://micro.mamba.pm/api/micromamba/linux-aarch64/latest"; \
elif [ -z "${TARGETARCH}" ]; then \
echo "TARGETARCH is empty, defaulting to amd64"; \
fi && \
echo "Downloading micromamba for ${TARGETARCH} from: ${MICROMAMBA_URL}" && \
curl -Ls "${MICROMAMBA_URL}" | tar -C /opt/micromamba -xvj bin/micromamba && \
MAMBA_ROOT_PREFIX="/opt/micromamba"; /opt/micromamba/bin/micromamba shell init -s bash && \
# Setup micromamba for Python environment using official install script
# The script automatically detects architecture and handles installation
RUN curl -Ls https://micro.mamba.pm/install.sh | bash -s -- -b -p /opt/micromamba && \
/opt/micromamba/bin/micromamba shell init -s bash --root-prefix=/opt/micromamba && \
echo 'export PATH="/opt/micromamba/bin:$PATH"' >> /root/.bashrc && \
echo 'export MAMBA_ROOT_PREFIX="/opt/micromamba"' >> /root/.bashrc

Expand Down Expand Up @@ -103,6 +96,9 @@ RUN dnf -y update && \
ARG PUBLIC_URL_ARG=
ENV PUBLIC_URL=$PUBLIC_URL_ARG

ARG PORT_ARG=8888
ENV PORT=$PORT_ARG

WORKDIR /usr/src/app

# Copy micromamba and Python environment from builder
Expand Down Expand Up @@ -145,5 +141,5 @@ COPY --from=builder /usr/src/app/prepare ./prepare

RUN chmod 755 _docker-entrypoint.sh

EXPOSE 8888
EXPOSE ${PORT}
CMD ["./_docker-entrypoint.sh"]
2 changes: 1 addition & 1 deletion configure/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "configure",
"version": "4.2.27-20260319",
"version": "4.2.28-20260319",
"homepage": "./configure/build",
"private": true,
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mmgis",
"version": "4.2.27-20260319",
"version": "4.2.28-20260319",
"description": "A web-based mapping and localization solution for science operation on planetary missions.",
"homepage": "build",
"repository": {
Expand Down
Loading