File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,16 @@ RUN apk add --no-cache --virtual .gyp \
9
9
10
10
RUN npm install -g
[email protected]
11
11
12
+
12
13
WORKDIR /app
13
14
14
15
COPY package*.json ./
15
16
17
+
16
18
RUN npm install --no-install-recommends --fetch-retry-maxtimeout 500000
19
+ # RUN npm run prod-build
20
+ # install vite virst
21
+
17
22
18
23
COPY . .
19
24
@@ -25,6 +30,9 @@ WORKDIR /app
25
30
COPY --from=build /app/package*.json ./
26
31
27
32
RUN npm install --no-install-recommends --fetch-retry-maxtimeout 500000
33
+
34
+ # make a build file?
35
+
28
36
# --only=prod
29
37
# COPY --from=build /app/.env .env
30
38
COPY --from=build /app/config.js ./config.js
@@ -35,4 +43,16 @@ EXPOSE 5656
35
43
36
44
ENV IS_DOCKER=true
37
45
46
+
47
+ ENV VIDEOSDK='vidsdk'
48
+ ENV NODE_ENV='development'
49
+ ENV DEV_PORT=5656
50
+
51
+ ENV MONGO_DB=
'mongodb+srv://NOAH:[email protected] /?retryWrites=true&w=majority&appName=TrialCluster'
52
+ ENV GITHUB_CLIENT='github client'
53
+ ENV GITHUB_SECRET='github secret'
54
+ ENV GOOGLE_CLIENT='gogleclient'
55
+ ENV GOOGLE_SECRET='googlebutitssecret'
56
+ ENV SESSION_SECRET='session,but its secret'
57
+
38
58
CMD [ "npm" , "start" ]
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ dotenv.config();
40
40
const app = express ( ) ;
41
41
console . log ( 'process.env.NODE_ENV check' , process . env . NODE_ENV ) ;
42
42
43
- const PORT = process . env . PORT || DEV_PORT ;
43
+ const PORT = 5656 ; /// process.env.PORT || DEV_PORT;
44
44
const isDev = process . env . NODE_ENV === 'development' ;
45
45
const isProd = process . env . NODE_ENV === 'production' ;
46
46
const isTest = process . env . NODE_ENV === 'test' ;
You can’t perform that action at this time.
0 commit comments