study_xxqg/Dockerfile

30 lines
998 B
Docker
Raw Normal View History

2022-08-13 03:18:34 +00:00
FROM ubuntu:jammy
2022-08-13 03:18:34 +00:00
ARG DEBIAN_FRONTEND=noninteractive
ARG TARGETARCH
2022-08-13 03:18:34 +00:00
ARG TZ="Asia/Shanghai"
2022-08-13 07:55:40 +00:00
RUN apt-get -qq update && \
apt-get -qq install -y --no-install-recommends tzdata ca-certificates libglib2.0-0 libnss3 libnspr4 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 \
2022-08-13 03:18:34 +00:00
libdbus-1-3 libexpat1 libxcb1 libxkbcommon0 libx11-6 libxcomposite1 libxdamage1 libxext6 libxfixes3 libxrandr2 libgbm1 libpango-1.0-0 \
libcairo2 libasound2 libatspi2.0-0 && \
2022-08-13 07:55:40 +00:00
ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime && \
echo ${TZ} > /etc/timezone && \
dpkg-reconfigure --frontend noninteractive tzdata &&\
2022-08-07 13:17:22 +00:00
rm -rf /var/lib/apt/lists/* && \
2022-08-07 12:41:53 +00:00
mkdir /opt/config/
2022-07-04 03:27:57 +00:00
2022-07-27 10:21:49 +00:00
COPY conf/config_default.yml /opt/config/config.yml
COPY conf/QuestionBank.db /opt/QuestionBank.db
2022-08-13 03:18:34 +00:00
COPY ./dist/docker_linux_$TARGETARCH*/study_xxqg /opt/study_xxqg
2022-08-07 12:41:53 +00:00
RUN chmod -R 777 /opt/study_xxqg && \
cd /opt/ && \
./study_xxqg --init
2022-07-04 03:27:57 +00:00
EXPOSE 8080
2022-07-04 03:27:57 +00:00
VOLUME /opt/config
2022-07-04 03:27:57 +00:00
CMD cd /opt && ./study_xxqg