Skip to content

Commit 334ab25

Browse files
committed
Fix Dockerfile
1 parent de3337e commit 334ab25

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Dockerfile

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
FROM node:12.18.2-alpine3.11
2-
ENV NODE_ENV production
32

43
WORKDIR /app
54
COPY ["package.json", "yarn.lock", "./"]
65
COPY src src
76

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
108

119
FROM node:12.18.2-alpine3.11
1210

11+
ENV NODE_ENV production
12+
1313
WORKDIR /app
1414
COPY --from=0 /app .
1515

@@ -20,6 +20,7 @@ COPY . .
2020
# To restore workspaces symlinks
2121
RUN yarn install --frozen-lockfile --production=true && \
2222
chmod -R 755 scripts src && \
23+
touch ~/.env && \
2324
cat crond/crontab >> /var/spool/cron/crontabs/root
2425

2526
CMD scripts/start.sh

0 commit comments

Comments
 (0)