1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-29 16:07:40 +01:00

update Dockerfile & add compose.yaml file

This commit is contained in:
Christopher Dixon 2024-02-27 14:38:48 -05:00
parent 86a3136fd0
commit 2cfa5acb35
2 changed files with 55 additions and 0 deletions

View file

@ -9,8 +9,36 @@ COPY pnpm-lock.yaml ./
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
ARG PWA_ENABLED="false"
ARG GA_ID=""
ARG APP_DOMAIN=""
ARG OPENSEARCH_ENABLED="false"
ARG TMDB_READ_API_KEY=""
ARG CORS_PROXY_URL=""
ARG DMCA_EMAIL=""
ARG NORMAL_ROUTER="false"
ARG BACKEND_URL=""
ARG HAS_ONBOARDING="false"
ARG ONBOARDING_CHROME_EXTENSION_INSTALL_LINK=""
ARG ONBOARDING_PROXY_INSTALL_LINK=""
ARG DISALLOWED_IDS=""
ARG CDN_REPLACEMENTS=""
ARG TURNSTILE_KEY=""
ENV VITE_PWA_ENABLED=${PWA_ENABLED}
ENV VITE_GA_ID=${GA_ID}
ENV VITE_APP_DOMAIN=${APP_DOMAIN}
ENV VITE_OPENSEARCH_ENABLED=${OPENSEARCH_ENABLED}
ENV VITE_TMDB_READ_API_KEY=${TMDB_READ_API_KEY}
ENV VITE_CORS_PROXY_URL=${CORS_PROXY_URL}
ENV VITE_DMCA_EMAIL=${DMCA_EMAIL}
ENV VITE_NORMAL_ROUTER=${NORMAL_ROUTER}
ENV VITE_BACKEND_URL=${BACKEND_URL}
ENV VITE_HAS_ONBOARDING=${HAS_ONBOARDING}
ENV VITE_ONBOARDING_CHROME_EXTENSION_INSTALL_LINK=${ONBOARDING_CHROME_EXTENSION_INSTALL_LINK}
ENV VITE_ONBOARDING_PROXY_INSTALL_LINK=${ONBOARDING_PROXY_INSTALL_LINK}
ENV VITE_DISALLOWED_IDS=${DISALLOWED_IDS}
ENV VITE_CDN_REPLACEMENTS=${CDN_REPLACEMENTS}
ENV VITE_TURNSTILE_KEY=${TURNSTILE_KEY}
COPY . ./
RUN pnpm run build

27
compose.yaml Normal file
View file

@ -0,0 +1,27 @@
version: "3.8"
services:
movieweb:
image: ghcr.io/movie-web/movie-web:latest
ports:
- "3000:80"
restart: always
environment:
VITE_CORS_PROXY_URL: ${VITE_CORS_PROXY_URL}
VITE_TMDB_READ_API_KEY: ${VITE_TMDB_READ_API_KEY}
VITE_PWA_ENABLED: ${PWA_ENABLED}
VITE_GA_ID: ${GA_ID}
VITE_APP_DOMAIN: ${APP_DOMAIN}
VITE_OPENSEARCH_ENABLED: ${OPENSEARCH_ENABLED}
VITE_TMDB_READ_API_KEY: ${TMDB_READ_API_KEY}
VITE_CORS_PROXY_URL: ${CORS_PROXY_URL}
VITE_DMCA_EMAIL: ${DMCA_EMAIL}
VITE_NORMAL_ROUTER: ${NORMAL_ROUTER}
VITE_BACKEND_URL: ${BACKEND_URL}
VITE_HAS_ONBOARDING: ${HAS_ONBOARDING}
VITE_ONBOARDING_CHROME_EXTENSION_INSTALL_LINK: ${ONBOARDING_CHROME_EXTENSION_INSTALL_LINK}
VITE_ONBOARDING_PROXY_INSTALL_LINK: ${ONBOARDING_PROXY_INSTALL_LINK}
VITE_DISALLOWED_IDS: ${DISALLOWED_IDS}
VITE_CDN_REPLACEMENTS: ${CDN_REPLACEMENTS}
VITE_TURNSTILE_KEY: ${TURNSTILE_KEY}