mirror of
https://github.com/wger-project/wger.git
synced 2026-02-18 00:17:51 +01:00
27 lines
659 B
Docker
27 lines
659 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 \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
&& npm install -g 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 .
|