mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-22 02:05:42 +00:00
This commit is contained in:
parent
104778c5e4
commit
3d0b79bb15
23
Dockerfile
23
Dockerfile
@ -22,6 +22,29 @@ WORKDIR /app
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY . .
|
||||
|
||||
RUN --mount=type=secret,id=SPOTIFY_CLIENT_ID \
|
||||
--mount=type=secret,id=SPOTIFY_CLIENT_SECRET \
|
||||
--mount=type=secret,id=SPOTIFY_REFRESH_TOKEN \
|
||||
--mount=type=secret,id=NEXT_PUBLIC_SITE_URL \
|
||||
--mount=type=secret,id=GITHUB_ACCESS_TOKEN \
|
||||
--mount=type=secret,id=GITHUB_USERNAME \
|
||||
--mount=type=secret,id=GITHUB_CLIENT_ID \
|
||||
--mount=type=secret,id=GITHUB_SECRET \
|
||||
--mount=type=secret,id=NEXT_PUBLIC_SUPABASE_URL \
|
||||
--mount=type=secret,id=NEXT_PUBLIC_SUPABASE_ANON_KEY \
|
||||
--mount=type=secret,id=SUPABASE_SERVICE_ROLE_KEY \
|
||||
export SPOTIFY_CLIENT_ID=$(sed -n 's/^SPOTIFY_CLIENT_ID=\(.*\)$/\1/p' .env) && \
|
||||
export SPOTIFY_CLIENT_SECRET=$(sed -n 's/^SPOTIFY_CLIENT_SECRET=\(.*\)$/\1/p' .env) && \
|
||||
export SPOTIFY_REFRESH_TOKEN=$(sed -n 's/^SPOTIFY_REFRESH_TOKEN=\(.*\)$/\1/p' .env) && \
|
||||
export SPOTIFY_REFRESH_TOKEN=$(sed -n 's/^NEXT_PUBLIC_SITE_URL=\(.*\)$/\1/p' .env) && \
|
||||
export SPOTIFY_REFRESH_TOKEN=$(sed -n 's/^GITHUB_ACCESS_TOKEN=\(.*\)$/\1/p' .env) && \
|
||||
export SPOTIFY_REFRESH_TOKEN=$(sed -n 's/^GITHUB_USERNAME=\(.*\)$/\1/p' .env) && \
|
||||
export SPOTIFY_REFRESH_TOKEN=$(sed -n 's/^GITHUB_CLIENT_ID=\(.*\)$/\1/p' .env) && \
|
||||
export SPOTIFY_REFRESH_TOKEN=$(sed -n 's/^GITHUB_SECRET=\(.*\)$/\1/p' .env) && \
|
||||
export SPOTIFY_REFRESH_TOKEN=$(sed -n 's/^NEXT_PUBLIC_SUPABASE_URL=\(.*\)$/\1/p' .env) && \
|
||||
export SPOTIFY_REFRESH_TOKEN=$(sed -n 's/^NEXT_PUBLIC_SUPABASE_ANON_KEY=\(.*\)$/\1/p' .env) && \
|
||||
export SPOTIFY_REFRESH_TOKEN=$(sed -n 's/^SUPABASE_SERVICE_ROLE_KEY=\(.*\)$/\1/p' .env)
|
||||
|
||||
# Next.js collects completely anonymous telemetry data about general usage.
|
||||
# Learn more here: https://nextjs.org/telemetry
|
||||
# Uncomment the following line in case you want to disable telemetry during the build.
|
||||
|
Loading…
Reference in New Issue
Block a user