- POSTGRES_USER=patchwork
- POSTGRES_PASSWORD=password
web:
+ platform: linux/amd64
build:
context: .
dockerfile: ./tools/docker/Dockerfile
# https://stackoverflow.com/a/55706057
- SYS_NICE # CAP_SYS_NICE
web:
+ platform: linux/amd64
build:
context: .
dockerfile: ./tools/docker/Dockerfile
package.
__ post-install_
+ .. note::
+
+ Mac users might need to enable Rosetta emulation in the docker engine.
+
#. (Optional) Create a ``.env`` file in the root directory of the project and
store your ``UID`` and ``GID`` attribute there.
ENV PROJECT_HOME /home/patchwork/patchwork
ENV DJANGO_SETTINGS_MODULE patchwork.settings.dev
-RUN groupadd --gid=$GID patchwork && \
+RUN groupadd -o --gid=$GID patchwork && \
useradd --uid=$UID --gid=$GID --create-home patchwork
RUN rm -f /etc/localtime; ln -s /usr/share/zoneinfo/$TZ /etc/localtime