Update Dockerfile
Browse files- Dockerfile +3 -9
Dockerfile
CHANGED
@@ -2,20 +2,14 @@ FROM ghcr.io/martialbe/one-api as builder
|
|
2 |
|
3 |
FROM --platform=$BUILDPLATFORM caddy:2.6.2-alpine AS runner
|
4 |
|
5 |
-
RUN apk update \
|
6 |
-
&& apk upgrade \
|
7 |
-
&& apk add --no-cache ca-certificates tzdata \
|
8 |
-
&& update-ca-certificates 2>/dev/null || true
|
9 |
-
|
10 |
-
COPY --from=builder /one-api /usr/local/bin/one-api
|
11 |
-
|
12 |
WORKDIR /app
|
13 |
|
|
|
|
|
14 |
COPY Caddyfile ./Caddyfile
|
15 |
-
RUN touch /app/caddy.log && chmod 777 -R /app/caddy.log
|
16 |
|
17 |
RUN chmod 777 -R /app
|
18 |
|
19 |
EXPOSE 3001
|
20 |
|
21 |
-
CMD ["sh", "-c", "caddy run --config /app/Caddyfile & /
|
|
|
2 |
|
3 |
FROM --platform=$BUILDPLATFORM caddy:2.6.2-alpine AS runner
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
WORKDIR /app
|
6 |
|
7 |
+
COPY --from=builder /one-api /app/one-api
|
8 |
+
|
9 |
COPY Caddyfile ./Caddyfile
|
|
|
10 |
|
11 |
RUN chmod 777 -R /app
|
12 |
|
13 |
EXPOSE 3001
|
14 |
|
15 |
+
CMD ["sh", "-c", "caddy run --config /app/Caddyfile & /app/one-api"]
|