Files
wger/extras/docker/development/Dockerfile
Roland Geider 909361f6ec Refactor project to use packaged version of our react component
This gets rid of the checked-in react code, which was causing huge diffs
2025-10-11 16:46:24 +02:00

28 lines
687 B
Docker

#
# Docker file for the development environment
#
# Please consult https://wger.readthedocs.io/en/latest/development/backend.html
# on how to use and start it.
FROM wger/server:latest
USER root
WORKDIR /home/wger/src
RUN wget -O- https://deb.nodesource.com/setup_22.x | bash - \
apt update && \
apt install --no-install-recommends -y \
git \
vim \
nodejs \
sassc \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& ln -s /usr/bin/sassc /usr/bin/sass
USER wger
COPY --chown=wger:wger . /home/wger/src
RUN npm install \
&& npm run build:css:sass \
&& pip3 install --break-system-packages --user --group dev --editable .