-
Notifications
You must be signed in to change notification settings - Fork 95
/
Copy pathDockerfile
41 lines (26 loc) · 1.13 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
37
38
39
40
FROM python:3.6-alpine
ENV MEOWTH_INSTALLDIR="/opt/meowth"
ENV MEOWTH_CONFIG=$MEOWTH_INSTALLDIR/config.json
RUN addgroup -g 1000 meowth && adduser -u 1000 -S -G meowth meowth
RUN mkdir -p $MEOWTH_INSTALLDIR
COPY requirements.txt $MEOWTH_INSTALLDIR/requirements.txt
RUN apk add --update build-base git && \
python3 -m pip install -r $MEOWTH_INSTALLDIR/requirements.txt
RUN python3 -m pip install -U git+https://github.com/Rapptz/discord.py@rewrite && \
apk del build-base git make gcc g++
COPY ./pokegifs $MEOWTH_INSTALLDIR/
COPY ./meowth $MEOWTH_INSTALLDIR/
COPY ./locale $MEOWTH_INSTALLDIR/
COPY ./images $MEOWTH_INSTALLDIR/
COPY ./data $MEOWTH_INSTALLDIR/
COPY ./config $MEOWTH_INSTALLDIR/
COPY launcher.py LICENSE emoji.rar $MEOWTH_INSTALLDIR/
RUN cp $MEOWTH_INSTALLDIR/config_blank.json $MEOWTH_CONFIG && \
mkdir $MEOWTH_INSTALLDIR/logs &&
chown meowth:meowth -R $MEOWTH_INSTALLDIR
RUN apk del build-base git make gcc g++ && \
rm -rf /var/cache/apk/* /root/* /root/.cache
USER meowth
VOLUME [ "$MEOWTH_INSTALLDIR/logs","$MEOWTH_INSTALLDIR/config" ]
WORKDIR $MEOWTH_INSTALLDIR
ENTRYPOINT ["python3", "launcher.py"]