Compare commits

..

2 Commits

Author SHA1 Message Date
Lukáš Kucharczyk 6def13d2b6 Fix CI
continuous-integration/drone/push Build is passing Details
2023-01-02 18:37:59 +01:00
Lukáš Kucharczyk 7039e442d9 Improve Dockerfile 2023-01-02 18:37:45 +01:00
2 changed files with 5 additions and 2 deletions

View File

@ -7,7 +7,7 @@ steps:
- name: build container - name: build container
image: plugins/docker image: plugins/docker
settings: settings:
repo: registry.kucharczyk.xyz/timetracker:latest repo: registry.kucharczyk.xyz/timetracker
tags: latest tags: latest
trigger: trigger:
event: event:

View File

@ -1,5 +1,8 @@
FROM python:3.10-slim-bullseye FROM python:3.10-slim-bullseye
RUN apt update && apt install --no-install-recommends --yes git RUN apt update \
&& apt install --no-install-recommends --yes \
git \
&& rm -rf /var/lib/apt/lists/*
ENV VIRTUAL_ENV=/opt/venv ENV VIRTUAL_ENV=/opt/venv
RUN python3 -m venv pip $VIRTUAL_ENV RUN python3 -m venv pip $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH" ENV PATH="$VIRTUAL_ENV/bin:$PATH"