Compare commits
No commits in common. "f974f3748e31f627ef0bb734efa984996e2d2558" and "270556c24adb3740d48cd7b3fc77d5a637362eca" have entirely different histories.
f974f3748e
...
270556c24a
14
Dockerfile
14
Dockerfile
|
@ -1,14 +0,0 @@
|
||||||
FROM python:3.10-slim-bullseye
|
|
||||||
RUN apt update && apt install --no-install-recommends --yes git
|
|
||||||
ENV VIRTUAL_ENV=/opt/venv
|
|
||||||
RUN python3 -m venv pip $VIRTUAL_ENV
|
|
||||||
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
|
|
||||||
RUN pip install --no-cache-dir poetry
|
|
||||||
RUN useradd --create-home --uid 1000 timetracker
|
|
||||||
RUN git clone https://git.kucharczyk.xyz/lukas/timetracker.git /home/timetracker/app
|
|
||||||
WORKDIR /home/timetracker/app
|
|
||||||
RUN chown -R timetracker /home/timetracker/app
|
|
||||||
RUN poetry install
|
|
||||||
EXPOSE 8000
|
|
||||||
USER timetracker
|
|
||||||
CMD [ "python3", "src/web/manage.py", "runserver", "0.0.0.0:8000" ]
|
|
Loading…
Reference in New Issue