forked from bluesky-social/pds
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (19 loc) · 693 Bytes
/
Dockerfile
File metadata and controls
27 lines (19 loc) · 693 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM node:18-alpine as build
# Move files into the image and install
WORKDIR /app
COPY ./service ./
RUN yarn install --production --frozen-lockfile > /dev/null
# Uses assets from build stage to reduce build size
FROM node:18-alpine
RUN apk add --update dumb-init
# Avoid zombie processes, handle signal forwarding
ENTRYPOINT ["dumb-init", "--"]
WORKDIR /app
COPY --from=build /app /app
EXPOSE 3000
ENV PDS_PORT=3000
ENV NODE_ENV=production
CMD ["node", "--enable-source-maps", "index.js"]
LABEL org.opencontainers.image.source=https://github.com/bluesky-social/pds
LABEL org.opencontainers.image.description="ATP Personal Data Server (PDS)"
LABEL org.opencontainers.image.licenses=MIT