Initial commit
This commit is contained in:
25
Dockerfile
Normal file
25
Dockerfile
Normal file
@@ -0,0 +1,25 @@
|
||||
FROM node:18.19.1 as builder
|
||||
|
||||
|
||||
WORKDIR /app
|
||||
ARG BACKEND_URL
|
||||
ENV BACKEND_URL ${BACKEND_URL}
|
||||
|
||||
ENV NODE_OPTIONS=--openssl-legacy-provider
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
FROM node:18-slim as run
|
||||
|
||||
WORKDIR /app
|
||||
ARG BACKEND_URL
|
||||
ENV BACKEND_URL ${BACKEND_URL}
|
||||
COPY package*.json ./
|
||||
COPY --from=builder /app/.output .output
|
||||
RUN ls -la /app
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD [ "node", ".output/server/index.mjs"]
|
Reference in New Issue
Block a user