Greums commited on
Commit
51efe80
·
1 Parent(s): 2c9a4de

fix container

Browse files
Files changed (3) hide show
  1. Caddyfile +1 -1
  2. Dockerfile +0 -1
  3. README.md +8 -4
Caddyfile CHANGED
@@ -1,4 +1,4 @@
1
  :7860
2
  root * /srv
3
  file_server
4
- try_files {path} /index.html
 
1
  :7860
2
  root * /srv
3
  file_server
4
+ try_files {path} /index.html
Dockerfile CHANGED
@@ -9,5 +9,4 @@ COPY Caddyfile /etc/caddy/Caddyfile
9
  COPY --from=builder /app/dist /srv
10
  COPY --from=caddy:2.9 /usr/bin/caddy /usr/bin/caddy
11
  EXPOSE 7860
12
- # RUN /usr/bin/caddy fmt --overwrite /etc/caddy/Caddyfile
13
  ENTRYPOINT ["/usr/bin/caddy", "run", "--config", "/etc/caddy/Caddyfile"]
 
9
  COPY --from=builder /app/dist /srv
10
  COPY --from=caddy:2.9 /usr/bin/caddy /usr/bin/caddy
11
  EXPOSE 7860
 
12
  ENTRYPOINT ["/usr/bin/caddy", "run", "--config", "/etc/caddy/Caddyfile"]
README.md CHANGED
@@ -11,10 +11,14 @@ license: mit
11
  ---
12
  # JVCGPT
13
 
14
- ## Getting Started
15
 
16
- - `npm run dev` - Starts a dev server at http://localhost:5173/
17
 
18
- - `npm run build` - Builds for production, emitting to `dist/`
19
 
20
- - `npm run preview` - Starts a server at http://localhost:4173/ to test production build locally
 
 
 
 
 
11
  ---
12
  # JVCGPT
13
 
14
+ ## Dev
15
 
16
+ - `npm run dev` - Starts a dev server at http://localhost:5173/
17
 
18
+ - `npm run build` - Builds for production, emitting to `dist/`
19
 
20
+ - `npm run preview` - Starts a server at http://localhost:4173/ to test production build locally
21
+
22
+ ## Prod
23
+
24
+ `docker run --rm -p 7860:7860 -it --name caddy-distroless $(docker build -q .)`