-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
30 lines (22 loc) · 1.05 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
FROM ubuntu:20.04
MAINTAINER 'ttmb dev <[email protected]>'
ARG VERSION=0.0.0
LABEL version="${VERSION}"
RUN mkdir /usr/local/share/ttmb
RUN apt-get update && apt-get install -y python3-pip git-core vim-common locales
RUN locale-gen en_US.UTF-8
RUN DEBIAN_FRONTEND=noninteractive dpkg-reconfigure locales
RUN touch /tmp/locales-tho
RUN mkdir /usr/local/etc/ipython
COPY ipython_config.json /usr/local/etc/ipython
COPY requirements.txt /usr/local/share/ttmb/
RUN pip3 install -r /usr/local/share/ttmb/requirements.txt
COPY scripts/entrypoint.sh /usr/local/bin/ttmb-entrypoint
RUN chmod ugo+rx /usr/local/bin/ttmb-entrypoint && mkdir /packmaker
COPY scripts/render-packmaker.sh /usr/local/bin/ttmb-render-packmaker
RUN chmod ugo+rx /usr/local/bin/ttmb-render-packmaker
COPY templates/curseforge.conf.j2 /usr/local/share/ttmb/
RUN chmod ugo+r /usr/local/share/ttmb/curseforge.conf.j2
COPY deps /deps
RUN if [ -e "/deps/packmaker/setup.py" ] ; then pip3 uninstall -y packmaker && cd /deps/packmaker && python3 setup.py install ; fi
ENTRYPOINT ["ttmb-entrypoint"]