Skip to content

Commit 21ebfb6

Browse files
committed
fix: remove unused build arguments for TinaCMS in Dockerfile
1 parent ca8a935 commit 21ebfb6

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

dockerfile

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,6 @@ FROM node:18 AS builder
22

33
WORKDIR /app
44

5-
# Accept build arguments for TinaCMS
6-
ARG TINA_TOKEN
7-
ARG TINA_PUBLIC_CLIENT_ID
8-
9-
# Set environment variables for build and runtime using the ARGs
10-
ENV TINA_TOKEN=$TINA_TOKEN
11-
ENV TINA_PUBLIC_CLIENT_ID=$TINA_PUBLIC_CLIENT_ID
12-
135
# Copy package.json and package-lock.json (if exists)
146
COPY package.json ./
157
COPY package-lock.json ./
@@ -34,7 +26,7 @@ COPY reveal.build.cjs ./
3426
COPY build.sh ./
3527

3628
# Build the site
37-
RUN printenv && npm run build
29+
RUN npm run build
3830

3931
# Use Nginx to serve the static files
4032
FROM nginx:alpine

0 commit comments

Comments
 (0)