Skip to content

Commit 888c3da

Browse files
committed
fix: remove ENV variables and better structure files inside image
1 parent 4a1ae28 commit 888c3da

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Dockerfile

+3-5
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,11 @@ WORKDIR /usr/src/parse
1818

1919
# Copy only the required files from the builder stage
2020
COPY --from=builder /usr/src/parse/node_modules ./node_modules
21-
COPY --from=builder /usr/src/parse/dist ./dist
21+
COPY --from=builder /usr/src/parse/dist ./
2222
COPY --from=builder /usr/src/parse/public ./public
2323

24-
ENV APP_ID=setYourAppId
25-
ENV MASTER_KEY=setYourMasterKey
26-
ENV DATABASE_URI=setMongoDBURI
24+
VOLUME ["/usr/src/parse/cloud", "/usr/src/parse/logs"]
2725

2826
EXPOSE 1337
2927

30-
CMD ["node", "dist/index.js"]
28+
CMD ["node", "index.js"]

0 commit comments

Comments
 (0)