2023-01-05 20:10:17 +00:00
|
|
|
FROM node as css
|
|
|
|
COPY . /
|
|
|
|
RUN apt install -y npm && \
|
|
|
|
npm install && \
|
|
|
|
npx tailwindcss -i ./src/input.css -o ./src/web/tracker/static/base.css --minify
|
|
|
|
|
2023-01-02 17:11:43 +00:00
|
|
|
FROM python:3.10-slim-bullseye
|
2023-01-05 20:10:17 +00:00
|
|
|
|
|
|
|
ENV VERSION_NUMBER 0.1.0-34-g8efce77
|
|
|
|
|
|
|
|
RUN useradd --create-home --uid 1000 timetracker && \
|
|
|
|
pip install --no-cache-dir poetry && \
|
|
|
|
poetry install --without dev
|
|
|
|
|
2023-01-02 17:11:43 +00:00
|
|
|
WORKDIR /home/timetracker/app
|
2023-01-03 13:29:39 +00:00
|
|
|
COPY . /home/timetracker/app/
|
|
|
|
RUN chown -R timetracker:timetracker /home/timetracker/app
|
2023-01-05 20:10:17 +00:00
|
|
|
|
2023-01-03 13:29:39 +00:00
|
|
|
COPY entrypoint.sh /
|
|
|
|
RUN chmod +x /entrypoint.sh
|
2023-01-02 17:26:24 +00:00
|
|
|
USER timetracker
|
2023-01-03 13:29:39 +00:00
|
|
|
EXPOSE 8000
|
|
|
|
ENTRYPOINT [ "/entrypoint.sh" ]
|