Add pre-commit hook to update version
This commit is contained in:
21
Dockerfile
21
Dockerfile
@ -1,16 +1,23 @@
|
||||
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
|
||||
|
||||
FROM python:3.10-slim-bullseye
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
WORKDIR /home/timetracker/app
|
||||
COPY . /home/timetracker/app/
|
||||
RUN chown -R timetracker:timetracker /home/timetracker/app
|
||||
RUN poetry install --without dev
|
||||
|
||||
COPY entrypoint.sh /
|
||||
RUN chmod +x /entrypoint.sh
|
||||
USER timetracker
|
||||
EXPOSE 8000
|
||||
ENV VERSION_NUMBER 0.1.0-18-gb8a15e4
|
||||
ENTRYPOINT [ "/entrypoint.sh" ]
|
Reference in New Issue
Block a user