You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
407 B
Docker
20 lines
407 B
Docker
2 years ago
|
FROM ubuntu:22.04
|
||
|
|
||
|
RUN apt-get update
|
||
|
RUN apt-get install -y python3 python3-venv
|
||
|
WORKDIR /srv/lws-web
|
||
2 years ago
|
RUN adduser \
|
||
|
--system \
|
||
|
--shell /bin/bash \
|
||
|
--gecos 'lws-web' \
|
||
|
--group \
|
||
|
--disabled-password \
|
||
|
--home /srv/lws-web \
|
||
|
--uid 1000 \
|
||
|
lws-web
|
||
2 years ago
|
COPY . .
|
||
2 years ago
|
RUN chown -R lws-web:lws-web .
|
||
2 years ago
|
USER lws-web
|
||
2 years ago
|
RUN python3 -m venv .venv
|
||
|
RUN .venv/bin/pip install poetry
|
||
2 years ago
|
RUN .venv/bin/poetry install
|