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
417 B
Docker
20 lines
417 B
Docker
FROM ubuntu:22.04
|
|
|
|
RUN apt-get update -y
|
|
RUN apt-get install -y python3 python3-venv
|
|
WORKDIR /srv/lwsadmin
|
|
RUN adduser \
|
|
--system \
|
|
--shell /bin/bash \
|
|
--gecos 'lwsadmin' \
|
|
--group \
|
|
--disabled-password \
|
|
--home /srv/lwsadmin \
|
|
--uid 1000 \
|
|
lwsadmin
|
|
COPY . .
|
|
RUN chown -R lwsadmin:lwsadmin .
|
|
USER lwsadmin
|
|
RUN python3 -m venv .venv
|
|
RUN .venv/bin/pip install poetry
|
|
RUN .venv/bin/poetry install |