update dockerfile

This commit is contained in:
David Siaw 2022-09-20 21:22:41 +00:00
parent 84a73eae2b
commit dddcdc770a
No known key found for this signature in database
GPG Key ID: 4CCBE2F7E983EA73
1 changed files with 17 additions and 7 deletions

View File

@ -1,17 +1,26 @@
FROM alpine:3.6 FROM alpine
ADD . /app ADD bin /app/bin
ADD gdrive-userscript /app/gdrive-userscript
ADD player /app/player
ADD src /app/src
ADD templates /app/templates
ADD www /app/www
ADD .eslintrc.js /app/.eslintrc.js
ADD index.js /app/index.js
ADD package.json /app/package.json
ADD package-lock.json /app/package-lock.json
ADD postinstall.sh /app/postinstall.sh
ADD servcmd.sh.js /app/servcmd.sh.js
ADD container-install.sh /app/container-install.sh
RUN cd app && sh container-install.sh RUN cd app && sh container-install.sh
WORKDIR /app
ENV MYSQL_HOST localhost ENV MYSQL_HOST localhost
ENV MYSQL_PORT 3306 ENV MYSQL_PORT 3306
ENV MYSQL_DATABASE cytube ENV MYSQL_DATABASE cytube
ENV MYSQL_USER cytube ENV MYSQL_USER cytube
ENV MYSQL_PASSWORD nico_best_girl ENV MYSQL_PASSWORD nico_best_girl
ENV MYSQL_ROOT_PASSWORD ruby_best_girl
ENV SYNC_TITLE Sync ENV SYNC_TITLE Sync
ENV SYNC_DESCRIPTION Sync Video ENV SYNC_DESCRIPTION Sync Video
ENV ROOT_URL http://localhost:8080 ENV ROOT_URL http://localhost:8080
@ -20,12 +29,13 @@ ENV IO_ROOT_URL http://localhost
ENV IO_ROOT_PORT 1337 ENV IO_ROOT_PORT 1337
ENV ROOT_DOMAIN localhost:8080 ENV ROOT_DOMAIN localhost:8080
ENV HTTPS_ENABLED false ENV HTTPS_ENABLED false
ENV TRUST_ALL_PROXIES false ENV COOKIE_SECRET aaa
ENV IMMEDIATE_PROXY 172.16.0.0/12
#ENV YOUTUBE_KEY #ENV YOUTUBE_KEY
#ENV TWITCH_CLIENT_ID #ENV TWITCH_CLIENT_ID
EXPOSE 8080 EXPOSE 8080
# EXPOSE 1337 EXPOSE 1337
# EXPOSE 8443 # EXPOSE 8443
ADD conf /app/conf ADD conf /app/conf