tangled
alpha
login
or
join now
vicwalker.dev.br
/
pds-mirror
0
fork
atom
Mirror from bluesky-social/pds
0
fork
atom
overview
issues
pulls
pipelines
remove volume from dockerfile, no longer set node user
Devin Ivy
2 years ago
e74cff78
8620ecaf
+1
-6
1 changed file
expand all
collapse all
unified
split
Dockerfile
+1
-6
Dockerfile
···
8
8
# Uses assets from build stage to reduce build size
9
9
FROM node:18-alpine
10
10
11
11
-
# RUN npm install -g yarn
12
11
RUN apk add --update dumb-init
13
12
14
13
# Avoid zombie processes, handle signal forwarding
···
16
15
17
16
WORKDIR /app
18
17
COPY --from=build /app /app
19
19
-
RUN mkdir /data && chown node /data
20
18
21
21
-
VOLUME /data
22
19
EXPOSE 3000
23
20
ENV PDS_PORT=3000
24
21
ENV NODE_ENV=production
25
22
26
26
-
# https://github.com/nodejs/docker-node/blob/master/docs/BestPractices.md#non-root-user
27
27
-
USER node
28
28
-
CMD ["node", "--heapsnapshot-signal=SIGUSR2", "--enable-source-maps", "index.js"]
23
23
+
CMD ["node", "--enable-source-maps", "index.js"]
29
24
30
25
LABEL org.opencontainers.image.source=https://github.com/bluesky-social/pds
31
26
LABEL org.opencontainers.image.description="ATP Personal Data Server (PDS)"