Files
wger/extras/docker/base/Dockerfile
Roland Geider c509e045aa Also compile the react application
This makes sure the frontend and its translations are always up to date.
2025-06-25 17:22:15 +02:00

46 lines
1005 B
Docker

#
# Base Docker image for wger images
#
#
# This dockerfile simply installs all common dependencies for the
# other images and does not do anything on its own.
#
# docker build --tag wger/base .
#
FROM ubuntu:24.04
LABEL org.opencontainers.image.authors="wger team <hello@wger.de>"
# Install dependencies
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update \
&& apt install --no-install-recommends -y \
ca-certificates \
python3 \
adduser \
locales \
sqlite3 \
wget \
tzdata \
libpq5 \
gettext \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& locale-gen en_US.UTF-8 \
&& wget https://bootstrap.pypa.io/get-pip.py \
&& python3 get-pip.py --no-warn-script-location --break-system-packages
# Environmental variables
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US:en
ENV LC_ALL=en_US.UTF-8
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Add wger user
RUN deluser ubuntu
RUN adduser wger --uid 1000 --disabled-password --gecos ""