repos
/ timestrap-django master

timestrap-django

mirror archived upstream

Time tracking you can host anywhere, built on Django. Full export support in multiple formats and easily extensible.

djangodockerhandcodedpythonself-hostedtime-trackingtimetracker

483 B · 21 lines · Docker Raw History
 1FROM alpine:3.16
 2
 3WORKDIR /srv/timestrap
 4
 5ENV PYTHONDONTWRITEBYTECODE 1
 6ENV PYTHONUNBUFFERED 1
 7
 8RUN apk add --no-cache python3 python3-dev py3-pip nodejs nodejs-dev yarn \
 9    postgresql-dev gcc musl-dev libffi-dev
10
11COPY Pipfile Pipfile.lock package.json yarn.lock /srv/timestrap/
12RUN pip3 install --upgrade pip \
13    && pip3 install pipenv \
14    && pipenv install --dev --system \
15    && yarn install
16
17COPY . .
18
19RUN yarn run build:prod
20RUN python3 manage.py collectstatic --noinput