Skip to content

Commit f59ea6b

Browse files
committed
nits
1 parent 3436bb3 commit f59ea6b

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

Dockerfile

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,31 @@
1+
# Build stage
12
FROM node:lts-alpine as build
23

34
RUN apk update; \
45
apk add git;
5-
66
WORKDIR /tmp
77
COPY package*.json ./
88
RUN npm ci
9-
109
COPY . .
1110
RUN npm run build
1211

12+
# Release stage
1313
FROM node:lts-alpine as release
1414

1515
WORKDIR /parse-server
1616
VOLUME ['/parse-server/cloud', '/parse-server/config']
1717

1818
COPY package*.json ./
19-
RUN npm ci --production
19+
RUN npm ci --production
2020

2121
COPY bin bin
2222
COPY public_html public_html
2323
COPY views views
2424
COPY --from=build /tmp/lib lib
25+
RUN mkdir -p logs && chown -R node: logs
2526

2627
ENV PORT=1337
27-
28-
RUN mkdir -p logs
29-
RUN chown -R node: logs
30-
3128
USER node
32-
3329
EXPOSE $PORT
3430

3531
ENTRYPOINT ["node", "./bin/parse-server"]

0 commit comments

Comments
 (0)