-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (30 loc) · 986 Bytes
/
Dockerfile
File metadata and controls
43 lines (30 loc) · 986 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
FROM node:22-alpine AS base
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
FROM base AS build
WORKDIR /app
COPY proxy-manager-frontend/ ./
RUN pnpm install --frozen-lockfile
RUN pnpm run build
FROM nginx:stable-alpine
RUN apk add --no-cache fcgiwrap spawn-fcgi shadow
COPY rootfs/ /
COPY --from=build /app/dist /app/frontend
VOLUME ["/data"]
ARG PUID=1000
ARG PGID=1000
ENV PUID=${PUID}
ENV PGID=${PGID}
RUN chmod +x /docker-entrypoint.sh
RUN chmod +x /usr/lib/nginx-api/reload.sh
RUN chmod +x /usr/lib/nginx-api/test.sh
EXPOSE 80 81 443
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["nginx", "-g", "daemon off;"]
LABEL org.label-schema.schema-version="1.0"
LABEL org.label-schema.license="MIT"
LABEL org.label-schema.name="aolda-proxy-manager"
LABEL org.label-schema.description="Aolda Proxy Manager"
LABEL org.label-schema.url="https://git.ajou.ac.kr/aolda/proxy-manager"
LABEL org.label-schema.vcs-url="https://git.ajou.ac.kr/aolda/proxy-manager.git"