fixing deployment AGAIN

This commit is contained in:
ngn
2023-11-12 19:18:10 +03:00
parent 556ebe7cd2
commit f00c0601cc
3 changed files with 14 additions and 10 deletions

View File

@ -1,11 +1,14 @@
FROM node:20-alpine3.17 as build
RUN apk update && apk upgrade && adduser -D svelte
USER svelte
RUN apk update && apk upgrade
WORKDIR /app
COPY --chown=svelte:svelte . /app
COPY . /app
EXPOSE 4173
ARG API_URL
ENV VITE_API_URL_DEV $API_URL
RUN npm install && npm run build
CMD ["npm", "run", "preview"]