better docker solution #176

This commit is contained in:
Alireza Ahmadi
2024-07-18 23:13:09 +02:00
parent 1631ac0c30
commit 2b6874a58d
3 changed files with 46 additions and 4 deletions
+3 -2
View File
@@ -1,4 +1,4 @@
FROM --platform=$BUILDPLATFORM node:alpine as front-builder
FROM --platform=$BUILDPLATFORM node:alpine AS front-builder
WORKDIR /app
COPY frontend/ ./
RUN npm install && npm run build
@@ -20,5 +20,6 @@ ENV TZ=Asia/Tehran
WORKDIR /app
RUN apk add --no-cache --update ca-certificates tzdata
COPY --from=backend-builder /app/sui /app/
COPY entrypoint.sh /app/
VOLUME [ "s-ui" ]
CMD [ "./sui" ]
ENTRYPOINT [ "./entrypoint.sh" ]