sfun commited on
Commit
fd251c6
·
verified ·
1 Parent(s): 996f834

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -0
Dockerfile ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ghcr.io/aurora-develop/duck2api:latest as builder
2
+
3
+ FROM --platform=$BUILDPLATFORM caddy:alpine AS runner
4
+
5
+ WORKDIR /app
6
+
7
+ COPY --from=builder /app/duck2api ./duck2api
8
+
9
+ COPY Caddyfile ./Caddyfile
10
+
11
+ RUN chmod 777 -R /app
12
+
13
+ EXPOSE 3000
14
+
15
+ CMD ["sh", "-c", "caddy run --config /app/Caddyfile & /app/duck2api"]