diff --git a/Dockerfile b/Dockerfile index 4297648..d6b551a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,12 +6,17 @@ COPY package.json . COPY yarn.lock . RUN yarn install --frozen-lockfile COPY . . + # replace the values in constants.ts ARG STATIC_URL ENV STATIC_URL ${STATIC_URL} RUN apt-get update && apt-get install -y gettext-base RUN envsubst < src/constants.ts > src/constants.ts.tmp RUN mv src/constants.ts.tmp src/constants.ts + +# remove the readme in the static folder +RUN rm static/README.md + RUN yarn run gridsome build FROM nginx:alpine-slim AS deploy