-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile
20 lines (17 loc) · 774 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# syntax=docker/dockerfile:1
FROM python:3.9-alpine
RUN sed -i "s/dl-cdn.alpinelinux.org/mirrors.cloud.tencent.com/g" /etc/apk/repositories
WORKDIR /tutake
RUN apk add --update --no-cache gcc make automake gcc g++ python3-dev cython freetype-dev
ENV PYTHONPATH=/usr/lib/python3.9/site-packages
RUN addgroup -S tutake && adduser -u 1000 -S tutake -G tutake
RUN mkdir -p /tutake/data & chown -R tutake /tutake
USER tutake
COPY requirements.txt requirements.txt
RUN pip3 install -i https://mirrors.cloud.tencent.com/pypi/simple -r requirements.txt
RUN pip3 install -i https://mirrors.cloud.tencent.com/pypi/simple pyzmq tornado
ENV TZ="Asia/Shanghai"
EXPOSE 5000/tcp
COPY ./tutake ./tutake
COPY ./ts_logger.yml ./entrypoint.py ./
COPY ./docker/docker-config.yml ./config.yml