-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (26 loc) · 820 Bytes
/
Copy pathDockerfile
File metadata and controls
31 lines (26 loc) · 820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM node:18
# 12.22.3-buster
# Create app directory
WORKDIR /usr/src/app
# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
COPY package*.json ./
RUN yarn install
# If you are building your code for production
# RUN yarn ci --only=production
# ARG GOOGLE_APPLICATION_CREDENTIALS=serviceAccount.json
# Bundle app source
COPY . .
# RUN yarn run prisma:generate
#RUN rm -rf node_modules && yarn install --frozen-lockfile
ARG NEXT_PUBLIC_HOST=https://shopcare.store
ARG NEXT_PUBLIC_CLOUD_NAME=ddbqbk80e
ARG NEXT_PUBLIC_CLOUD_PREFIX=exinhn0j
RUN yarn run build
#attach static files volume here
VOLUME [ "/usr/src/app/public" ]
# VOLUME [ "/usr/src/app/$GOOGLE_APPLICATION_CREDENTIALS" ]
EXPOSE 3000
EXPOSE 587
CMD [ "yarn","start" ]