Mirror from bluesky-social/pds

remove volume from dockerfile, no longer set node user

+1 -6
+1 -6
Dockerfile
··· 8 8 # Uses assets from build stage to reduce build size 9 9 FROM node:18-alpine 10 10 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 - RUN mkdir /data && chown node /data 20 18 21 - VOLUME /data 22 19 EXPOSE 3000 23 20 ENV PDS_PORT=3000 24 21 ENV NODE_ENV=production 25 22 26 - # https://github.com/nodejs/docker-node/blob/master/docs/BestPractices.md#non-root-user 27 - USER node 28 - CMD ["node", "--heapsnapshot-signal=SIGUSR2", "--enable-source-maps", "index.js"] 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)"