Fix Dockerfile
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Lukáš Kucharczyk 2023-01-15 19:16:34 +01:00
parent e8e6d5bcae
commit 162f4f3dbf
1 changed files with 13 additions and 5 deletions

View File

@ -4,17 +4,25 @@ COPY . /app
RUN npm install && \ RUN npm install && \
npx tailwindcss -i ./src/input.css -o ./src/web/tracker/static/base.css --minify npx tailwindcss -i ./src/input.css -o ./src/web/tracker/static/base.css --minify
FROM python:3.10.9-alpine FROM python:3.10.9-slim-bullseye
ENV VERSION_NUMBER 0.2.2 ENV VERSION_NUMBER 0.2.2
ENV PROD 1 ENV PROD 1
ENV PYTHONUNBUFFERED=1
RUN apk add \ RUN apt update && \
apt install -y \
bash \ bash \
vim \ vim \
curl \ curl && \
caddy apt install -y debian-keyring debian-archive-keyring apt-transport-https && \
RUN adduser -D -u 1000 timetracker curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg && \
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | tee /etc/apt/sources.list.d/caddy-stable.list && \
apt update && \
apt install caddy && \
rm -rf /var/lib/apt/lists/*
RUN useradd -m --uid 1000 timetracker
WORKDIR /home/timetracker/app WORKDIR /home/timetracker/app
COPY . /home/timetracker/app/ COPY . /home/timetracker/app/
RUN chown -R timetracker:timetracker /home/timetracker/app RUN chown -R timetracker:timetracker /home/timetracker/app