2021-12-06 09:42:28 +00:00
|
|
|
FROM debian:bullseye-slim
|
|
|
|
|
2022-08-05 09:14:14 +00:00
|
|
|
ARG TARGETARCH
|
|
|
|
|
|
|
|
COPY ./dist/nowin_linux_$TARGETARCH*/study_xxqg /opt/study_xxqg
|
2022-07-04 03:27:57 +00:00
|
|
|
|
|
|
|
RUN mkdir /opt/config/
|
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-07-04 03:27:57 +00:00
|
|
|
RUN apt-get -qq update \
|
|
|
|
&& apt-get -qq install -y --no-install-recommends ca-certificates curl \
|
|
|
|
&& apt-get update && 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 \
|
|
|
|
&& chmod -R 777 /opt/study_xxqg && cd /opt/ && ./study_xxqg --init
|
|
|
|
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
|