-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
37 lines (27 loc) · 1.09 KB
/
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
36
37
# --- Build stage ---
FROM docker.io/node:18-bookworm-slim AS build
ARG VERSION="0.12.1"
WORKDIR /build
ADD https://github.com/jeffvli/feishin.git#v${VERSION} /build
RUN npm install --legacy-peer-deps --ignore-scripts
RUN npm run build:web
# --- Final stage ---
FROM docker.io/nginx:1.27-bookworm
WORKDIR /app
COPY --from=build --chown=nginx:nginx /build/release/app/dist/web /app/
COPY --chown=0:0 settings.js.template /etc/nginx/templates/settings.js.template
COPY --chown=0:0 nginx.conf.template /etc/nginx/templates/default.conf.template
ENV FEISHIN_SERVER_TYPE=""
ENV FEISHIN_SERVER_NAME=""
ENV FEISHIN_SERVER_URL=""
ENV FEISHIN_SERVER_LOCK="false"
ENV FEISHIN_LISTEN_ADDR="0.0.0.0"
ENV FEISHIN_LISTEN_PORT=9180
ENV FEISHIN_PUBLIC_PATH="/"
EXPOSE 9180/tcp
LABEL \
org.opencontainers.image.title="feishin" \
org.opencontainers.image.source="https://github.com/f-bn/containers-images/feishin" \
org.opencontainers.image.description="A modern self-hosted music player" \
org.opencontainers.image.licenses="GPL-3.0-or-later" \
org.opencontainers.image.authors="Florian Bobin <[email protected]>"