forked from hywax/mafl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (22 loc) · 919 Bytes
/
Dockerfile
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
28
29
30
31
32
33
34
35
ARG NODE=node:20.13.1-alpine
FROM $NODE as build
WORKDIR /app
COPY package.json /app
COPY yarn.lock /app
RUN yarn install
COPY . /app
RUN yarn run build
FROM $NODE
LABEL org.opencontainers.image.title="Mafl" \
org.opencontainers.image.description="Minimalistic flexible homepage" \
org.opencontainers.image.url="https://mafl.hywax.space" \
org.opencontainers.image.documentation="https://mafl.hywax.space/guide/getting-started.html" \
org.opencontainers.image.source="https://github.com/hywax/mafl" \
org.opencontainers.image.authors="Hywax <me@hywax.space>" \
org.opencontainers.image.licenses="MIT"
WORKDIR /app
COPY --from=build /app/.output /app
COPY --from=build /app/extra/healthcheck.mjs /app/extra/healthcheck.mjs
EXPOSE 3000/tcp
HEALTHCHECK --interval=10s --timeout=5s --start-period=10s CMD ["node", "/app/extra/healthcheck.mjs"]
CMD ["/app/server/index.mjs"]