We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3436bb3 commit f59ea6bCopy full SHA for f59ea6b
Dockerfile
@@ -1,35 +1,31 @@
1
+# Build stage
2
FROM node:lts-alpine as build
3
4
RUN apk update; \
5
apk add git;
-
6
WORKDIR /tmp
7
COPY package*.json ./
8
RUN npm ci
9
10
COPY . .
11
RUN npm run build
12
+# Release stage
13
FROM node:lts-alpine as release
14
15
WORKDIR /parse-server
16
VOLUME ['/parse-server/cloud', '/parse-server/config']
17
18
19
-RUN npm ci --production
+RUN npm ci --production
20
21
COPY bin bin
22
COPY public_html public_html
23
COPY views views
24
COPY --from=build /tmp/lib lib
25
+RUN mkdir -p logs && chown -R node: logs
26
27
ENV PORT=1337
28
-RUN mkdir -p logs
29
-RUN chown -R node: logs
30
31
USER node
32
33
EXPOSE $PORT
34
35
ENTRYPOINT ["node", "./bin/parse-server"]
0 commit comments