Skip to content

Commit

Permalink
fix: dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
froid1911 committed Apr 9, 2024
1 parent 8eda41e commit 9ad68a5
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
FROM node:lts-alpine
FROM node:lts-alpine AS builder
ARG BASE_PATH="/alpha/powerhouse/connect"
ENV BASE_PATH=${BASE_PATH}

ARG X_TAG
WORKDIR /opt/app
ENV NODE_ENV=production
COPY . .
RUN npm install --frozen-lockfile

# Production image, copy all the files and run next
FROM node:lts-alpine AS runner

ARG X_TAG
WORKDIR /opt/app
ENV NODE_ENV=production
ARG BASE_PATH="/alpha/powerhouse/connect"
ENV BASE_PATH=${BASE_PATH}
COPY --from=builder /opt/app .

CMD npm run dev:web -- --host 0.0.0.0 --port ${PORT} --basename ${BASE_PATH}

0 comments on commit 9ad68a5

Please sign in to comment.