From 3b88688c93bd13444abdd895a9faf8a7f8c6f800 Mon Sep 17 00:00:00 2001 From: dm1sh Date: Sat, 17 Jul 2021 23:26:08 +0300 Subject: [PATCH] even more deployment hell --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index cf33d7f..c614e99 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,9 @@ WORKDIR /app COPY ./package.json ./ RUN npm install COPY ./ ./ -RUN npm run build +ENV SNOWPACK_PUBLIC_API_URL=https://publitebackend.dmitriy.icu +ENV SNOWPACK_PUBLIC_BASE_URL=https://publite.dmitriy.icu +RUN NODE_ENV=production npm run build FROM node:alpine RUN npm install serve -g --silent