Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +4 -3
Dockerfile
CHANGED
@@ -9,12 +9,13 @@ RUN apk update \
|
|
9 |
|
10 |
COPY --from=builder /one-api /usr/local/bin/one-api
|
11 |
|
12 |
-
WORKDIR /
|
13 |
|
14 |
COPY Caddyfile ./Caddyfile
|
|
|
15 |
|
16 |
-
RUN chmod 777 -R /
|
17 |
|
18 |
EXPOSE 3001
|
19 |
|
20 |
-
CMD ["sh", "-c", "caddy run --config /
|
|
|
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 & /usr/local/bin/one-api"]
|