2021-12-06 09:42:28 +00:00
|
|
|
FROM debian:bullseye-slim
|
|
|
|
|
2022-08-05 09:14:14 +00:00
|
|
|
ARG TARGETARCH
|
|
|
|
|
2022-08-07 12:41:53 +00:00
|
|
|
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
|
|
|
|
echo 'Asia/Shanghai' >/etc/timezone && \
|
|
|
|
apt-get -qq update && \
|
|
|
|
apt-get -qq install -y --no-install-recommends ca-certificates curl && \
|
|
|
|
apt-get install -y libx11-6 libgbm1 libasound2 libcairo2 libxshmfence1 libatspi2.0-0 libpango-1.0-0 libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libxrandr2 libxfixes3 libxdamage1 libxcomposite1 libxkbcommon0 && \
|
|
|
|
apt-get clean && \
|
|
|
|
mkdir /opt/config/
|
2022-07-04 03:27:57 +00:00
|
|
|
|
2022-08-07 12:41:53 +00:00
|
|
|
COPY ./dist/docker_linux_$TARGETARCH*/study_xxqg /opt/study_xxqg
|
2021-12-06 09:42:28 +00:00
|
|
|
|
2022-07-27 10:21:49 +00:00
|
|
|
COPY conf/config_default.yml /opt/config/config.yml
|
2021-12-06 09:42:28 +00:00
|
|
|
|
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
|
2021-12-06 09:42:28 +00:00
|
|
|
|
2022-07-04 03:27:57 +00:00
|
|
|
VOLUME /opt/config
|
2021-12-06 09:42:28 +00:00
|
|
|
|
2022-07-04 03:27:57 +00:00
|
|
|
CMD cd /opt && ./study_xxqg
|