forked from nh-server/Kurisu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (30 loc) · 1.08 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
33
34
35
36
FROM python:3.9-alpine
ENV IS_DOCKER=1
ENV PYTHONUNBUFFERED=1
ENV PYTHONDONTWRITEBYTECODE=1
ENV HOME /home/kurisu
RUN addgroup -g 2849 kurisu && adduser -u 2849 -h $HOME -D -G kurisu kurisu
WORKDIR $HOME
COPY ./requirements.txt .
RUN set -eux \
&& apk add --no-cache libpq libjpeg-turbo \
&& apk add --no-cache --virtual .build-deps gcc git musl-dev zlib-dev libjpeg-turbo-dev postgresql-dev \
&& pip install --no-compile --no-cache-dir -r requirements.txt \
&& apk del --no-network .build-deps
USER kurisu
#COPY data data
RUN mkdir data
COPY kurisu.py kurisu.py
COPY utils utils
COPY cogs cogs
ARG BRANCH="unknown"
ENV COMMIT_BRANCH=${BRANCH}
ARG COMMIT="unknown"
ENV COMMIT_SHA=${COMMIT}
LABEL org.opencontainers.image.title Kurisu
LABEL org.opencontainers.image.description Discord moderation bot for Nintendo Homebrew
LABEL org.opencontainers.image.source https://github.com/nh-server/Kurisu
LABEL org.opencontainers.image.url https://github.com/nh-server/Kurisu
LABEL org.opencontainers.image.licenses Apache-2.0
LABEL org.opencontainers.image.revision $COMMIT
CMD ["python3", "kurisu.py"]