smgc commited on
Commit
1f26615
1 Parent(s): accee1b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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
- WORKDIR /app
 
 
30
 
31
- COPY --from=builder2 /build/one-api ./
32
  COPY Caddyfile ./Caddyfile
33
 
34
- RUN chmod 777 -R /app
35
- RUN touch /app/caddy.log && chmod 777 -R /app/caddy.log
36
 
37
  EXPOSE 3001
38
 
39
- CMD ["sh", "-c", "./oen-api & caddy run --config /data/Caddyfile"]
 
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"]