Update Dockerfile
Browse files- Dockerfile +1 -2
Dockerfile
CHANGED
@@ -9,7 +9,7 @@ ENV POETRY_VERSION=1.8.4 \
|
|
9 |
POETRY_CACHE_DIR=/tmp/poetry_cache \
|
10 |
PYTHONDONTWRITEBYTECODE=1
|
11 |
|
12 |
-
# Install system dependencies and create
|
13 |
RUN apt-get update && apt-get install -y \
|
14 |
sudo \
|
15 |
postgresql \
|
@@ -17,7 +17,6 @@ RUN apt-get update && apt-get install -y \
|
|
17 |
&& useradd -m -u 1000 user \
|
18 |
&& usermod -aG sudo user \
|
19 |
&& echo "user ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers \
|
20 |
-
&& useradd -m -u 999 postgres \
|
21 |
&& usermod -aG sudo postgres
|
22 |
|
23 |
# Create directories and set permissions
|
|
|
9 |
POETRY_CACHE_DIR=/tmp/poetry_cache \
|
10 |
PYTHONDONTWRITEBYTECODE=1
|
11 |
|
12 |
+
# Install system dependencies and create user first
|
13 |
RUN apt-get update && apt-get install -y \
|
14 |
sudo \
|
15 |
postgresql \
|
|
|
17 |
&& useradd -m -u 1000 user \
|
18 |
&& usermod -aG sudo user \
|
19 |
&& echo "user ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers \
|
|
|
20 |
&& usermod -aG sudo postgres
|
21 |
|
22 |
# Create directories and set permissions
|