even more deployment hell

This commit is contained in:
Dmitriy Shishkov 2021-07-17 23:26:08 +03:00
parent 44973de80d
commit 3b88688c93
No known key found for this signature in database
GPG Key ID: 14358F96FCDD8060

View File

@ -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