Commit 334ab25 1 parent de3337e commit 334ab25 Copy full SHA for 334ab25
File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
FROM node:12.18.2-alpine3.11
2
- ENV NODE_ENV production
3
2
4
3
WORKDIR /app
5
4
COPY ["package.json" , "yarn.lock" , "./" ]
6
5
COPY src src
7
6
8
- RUN touch .env && \
9
- find src \! -name "package.json" -mindepth 2 -maxdepth 2 -print | xargs rm -rf
7
+ RUN find src \! -name "package.json" -mindepth 2 -maxdepth 2 -print | xargs rm -rf
10
8
11
9
FROM node:12.18.2-alpine3.11
12
10
11
+ ENV NODE_ENV production
12
+
13
13
WORKDIR /app
14
14
COPY --from=0 /app .
15
15
@@ -20,6 +20,7 @@ COPY . .
20
20
# To restore workspaces symlinks
21
21
RUN yarn install --frozen-lockfile --production=true && \
22
22
chmod -R 755 scripts src && \
23
+ touch ~/.env && \
23
24
cat crond/crontab >> /var/spool/cron/crontabs/root
24
25
25
26
CMD scripts/start.sh
You can’t perform that action at this time.
0 commit comments