You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
843 B
32 lines
843 B
# Docker image for local development environment.
|
|
# You should NOT publish this image, it is intended for local use only.
|
|
|
|
FROM almalinux/almalinux:8
|
|
ARG LOCAL_UID
|
|
ARG LOCAL_GID
|
|
ARG LOCAL_USER=web
|
|
|
|
RUN groupadd -g $LOCAL_GID -o $LOCAL_USER
|
|
RUN useradd -m -u $LOCAL_UID -g $LOCAL_GID -o -s /bin/bash $LOCAL_USER
|
|
|
|
|
|
RUN dnf -y install \
|
|
gcc \
|
|
make \
|
|
gettext \
|
|
python38 \
|
|
python38-devel \
|
|
mariadb-devel
|
|
|
|
RUN pip3 install pipenv
|
|
|
|
# Work around IDEA remote interpreter not able to work with remote virtualenvs
|
|
RUN touch /root/.bashrc \
|
|
&& echo 'if [[ -f "/app/.venv/bin/activate" ]]; then source /app/.venv/bin/activate; fi' >> /root/.bashrc
|
|
|
|
RUN touch /home/web/.bashrc \
|
|
&& echo 'if [[ -f "/app/.venv/bin/activate" ]]; then source /app/.venv/bin/activate; fi' >> /home/web/.bashrc
|
|
|
|
WORKDIR /app
|
|
|
|
CMD make runserver
|
|
|