Mirror from bluesky-social/pds
1FROM node:18-alpine as build 2 3# Move files into the image and install 4WORKDIR /app 5COPY ./service ./ 6RUN yarn install --production --frozen-lockfile > /dev/null 7 8# Uses assets from build stage to reduce build size 9FROM node:18-alpine 10 11RUN apk add --update dumb-init 12 13# Avoid zombie processes, handle signal forwarding 14ENTRYPOINT ["dumb-init", "--"] 15 16WORKDIR /app 17COPY --from=build /app /app 18 19EXPOSE 3000 20ENV PDS_PORT=3000 21ENV NODE_ENV=production 22 23CMD ["node", "--enable-source-maps", "index.js"] 24 25LABEL org.opencontainers.image.source=https://github.com/bluesky-social/pds 26LABEL org.opencontainers.image.description="ATP Personal Data Server (PDS)" 27LABEL org.opencontainers.image.licenses=MIT