Update Dockerfile
Browse files- Dockerfile +6 -5
Dockerfile
CHANGED
@@ -26,14 +26,15 @@ RUN apk update \
|
|
26 |
&& apk add --no-cache ca-certificates tzdata \
|
27 |
&& update-ca-certificates 2>/dev/null || true
|
28 |
|
29 |
-
|
|
|
|
|
30 |
|
31 |
-
COPY --from=builder2 /build/one-api ./
|
32 |
COPY Caddyfile ./Caddyfile
|
33 |
|
34 |
-
RUN chmod 777 -R /
|
35 |
-
RUN touch /
|
36 |
|
37 |
EXPOSE 3001
|
38 |
|
39 |
-
CMD ["sh", "-c", "
|
|
|
26 |
&& apk add --no-cache ca-certificates tzdata \
|
27 |
&& update-ca-certificates 2>/dev/null || true
|
28 |
|
29 |
+
COPY --from=builder2 /build/one-api /
|
30 |
+
|
31 |
+
WORKDIR /data
|
32 |
|
|
|
33 |
COPY Caddyfile ./Caddyfile
|
34 |
|
35 |
+
RUN chmod 777 -R /data
|
36 |
+
RUN touch /data/caddy.log && chmod 777 -R /data/caddy.log
|
37 |
|
38 |
EXPOSE 3001
|
39 |
|
40 |
+
CMD ["sh", "-c", "/oen-api & caddy run --config /data/Caddyfile"]
|