Skip to content

Commit eb932de

Browse files
committed
make build in dockerfile
1 parent f88f959 commit eb932de

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,14 @@ COPY package*.json ./
1616

1717

1818
RUN npm install --no-install-recommends --fetch-retry-maxtimeout 500000
19-
#RUN npm run prod-build
19+
2020
# install vite virst
2121

2222

2323
COPY . .
24+
ENV NODE_ENV='production'
25+
# i am hoping the above will make it so that the frontend files will know that it is production.
26+
RUN npm run prod-build
2427

2528
# Stage 2: Runtime
2629
FROM node:21.2.0-alpine AS runtime
@@ -52,7 +55,7 @@ ENV IS_DOCKER=true
5255

5356

5457
ENV VIDEOSDK='vidsdk'
55-
ENV NODE_ENV='production'
58+
5659
# productino you dolt!, if we are using docker, its production!
5760
ENV PORT=5656
5861

0 commit comments

Comments
 (0)