-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
32 lines (26 loc) · 1 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM python:3.9-buster
LABEL maintainer="[email protected]"
LABEL org.label-schema.name="katharineum/tinventory"
LABEL org.label-schema.description="Inventory toolkit in order not to lose technology stuff anymore"
LABEL org.label-schema.vcs-url="https://github.com/Katharineum/tinventory"
ENV LANG C.UTF-8
ENV PYTHONUNBUFFERED 1
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y \
libmariadbclient-dev yarnpkg gettext memcached redis && \
pip3 install --upgrade pip && \
pip3 install uwsgi mysqlclient poetry && \
rm -rf /var/lib/apt/lists/*
WORKDIR /var/www/
COPY poetry.lock /var/www/
COPY pyproject.toml /var/www/
RUN poetry config virtualenvs.create false; poetry install;
COPY docker-setup/uwsgi-app.ini /etc/uwsgi/apps-enabled/uwsgi-app.ini
COPY docker-setup/init_and_run.sh /home/docker/init_and_run.sh
COPY web /var/www/
RUN mkdir -p /var/www/tmp/
RUN python3 manage.py yarn install
RUN python3 manage.py compilemessages
EXPOSE 3031
CMD ["/home/docker/init_and_run.sh"]