Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nikos Pappas
National Registry
Commits
287a6b5c
Commit
287a6b5c
authored
Jan 13, 2022
by
Nikos Pappas
Browse files
5th
parent
d73acef4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
287a6b5c
FROM
python:3.9.6-alpine
RUN
useradd
-m
registry
&&
echo
"registry:registry"
| chpasswd
&&
adduser registry
sudo
# set environment variables
ENV
PYTHONDONTWRITEBYTECODE 1
ENV
PYTHONUNBUFFERED 1
RUN
chown
-R
registry:registry /app/
# copy app and set work directory
COPY
. /app/
WORKDIR
/app/
RUN
pip
install
--upgrade
pip
RUN
pip
install
-e
.
docker-compose.yml
0 → 100644
View file @
287a6b5c
version
:
'
3.8'
services
:
web
:
build
:
./app
command
:
python manage.py runserver 0.0.0.0:80
ports
:
-
80:80
env_file
:
-
.env
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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