Changed dockerfile

This commit is contained in:
Dmitriy Shishkov 2021-07-17 22:40:36 +03:00
parent 6cf7e2a253
commit 87139bd358
No known key found for this signature in database
GPG Key ID: 14358F96FCDD8060

View File

@ -4,9 +4,7 @@ WORKDIR /app
COPY ./package.json ./
RUN npm install
COPY ./ ./
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
RUN npm run build
FROM node:alpine
RUN npm install serve -g --silent