Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
frnmst
docker-debian-postgis-django
Commits
2329ce6f
Verified
Commit
2329ce6f
authored
Feb 03, 2021
by
frnmst
Browse files
Reduced number of layers.
parent
6a1633a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
2329ce6f
...
...
@@ -21,17 +21,11 @@
FROM
python:3.9.1-buster
AS
base
# Unbuffered output.
ENV
PYTHONUNBUFFERED 1
# Pass the running user and group.
ARG
UID
ARG
GID
RUN
mkdir
/code
RUN
groupadd
-g
$GID
-r
django
&&
useradd
-s
/bin/bash
--home-dir
/code
-u
$UID
-r
-g
django django
&&
mkdir
/code/django
WORKDIR
/code/django
RUN
groupadd
-g
$GID
-r
django
&&
useradd
--create-home
-s
/bin/bash
--home-dir
/code
-u
$UID
-r
-g
django django
&&
mkdir
/code/django
RUN
apt-get update
\
&&
apt-get
install
-y
--no-install-recommends
\
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment