forked from fedify-dev/hollo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
27 lines (21 loc) · 787 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
FROM docker.io/oven/bun:1.1.32-alpine
LABEL org.opencontainers.image.title="Hollo"
LABEL org.opencontainers.image.description="Federated single-user \
microblogging software"
LABEL org.opencontainers.image.url="https://docs.hollo.social/"
LABEL org.opencontainers.image.source="https://github.com/dahlia/hollo"
LABEL org.opencontainers.image.licenses="AGPL-3.0-only"
RUN apk add --no-cache ffmpeg jq libstdc++
COPY bun.lockb package.json /app/
WORKDIR /app/
RUN bun install --frozen-lockfile --no-cache
COPY . /app/
ARG VERSION
LABEL org.opencontainers.image.version="${VERSION}"
RUN \
if [ "$VERSION" != "" ]; then \
jq --arg version "$VERSION" '.version = $version' package.json > .pkg.json \
&& mv .pkg.json package.json; \
fi
EXPOSE 3000
CMD ["bun", "run", "prod"]