File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ DOCKER_HOST_GID=1000
77DOCKER_USER=developer
88DOCKER_USER_HOME=/home/developer
99
10+ MIRROR_LIST_COUNTRY=RU
1011BUILD_PACKAGES="pyenv git gnupg sudo postgresql-libs mariadb-libs openmp"
1112VIM_PACKAGES="python vim ctags ripgrep bat npm nodejs-lts-iron"
1213
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ ARG DOCKER_HOST_UID=10000
44ARG DOCKER_HOST_GID=10000
55ARG DOCKER_USER=devuser
66ARG DOCKER_USER_HOME=/home/devuser
7+ ARG MIRROR_LIST_COUNTRY=RU
78ARG BUILD_PACKAGES="pyenv git gnupg sudo postgresql-libs mariadb-libs openmp"
89ARG PYTHON_VERSION=3.13
910ARG POETRY_VERSION=1.8.5
@@ -18,7 +19,11 @@ RUN set -eux; \
1819 useradd --no-log-init -g $DOCKER_USER --uid=$DOCKER_HOST_UID \
1920 -d $DOCKER_USER_HOME -ms /bin/bash $DOCKER_USER
2021RUN mkdir /application && chown $DOCKER_USER:$DOCKER_USER /application
21- RUN pacman -Sy && pacman -S --noconfirm $BUILD_PACKAGES
22+ RUN curl -s \
23+ "https://archlinux.org/mirrorlist/?country=$MIRROR_LIST_COUNTRY&protocol=http&protocol=https&ip_version=4" \
24+ | sed -e 's/^#Server/Server/' -e '/^#/d' > /etc/pacman.d/mirrorlist
25+ RUN pacman -Syu --noconfirm
26+ RUN pacman -S --noconfirm $BUILD_PACKAGES
2227RUN echo "${DOCKER_USER} ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
2328ENV PYENV_ROOT=$DOCKER_USER_HOME/.pyenv
2429ENV PATH=$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ services:
99 - DOCKER_HOST_GID=${DOCKER_HOST_GID}
1010 - DOCKER_USER=${DOCKER_USER}
1111 - DOCKER_USER_HOME=${DOCKER_USER_HOME}
12+ - MIRROR_LIST_COUNTRY=${MIRROR_LIST_COUNTRY}
1213 - BUILD_PACKAGES=${BUILD_PACKAGES}
1314 - VIM_PACKAGES=${VIM_PACKAGES}
1415 - PYTHON_VERSION=${PYTHON_VERSION}
You can’t perform that action at this time.
0 commit comments