Jelajahi Sumber

update Dockerfile

NhanPT 3 tahun lalu
induk
melakukan
3c9bf2fc23
3 mengubah file dengan 6 tambahan dan 3 penghapusan
  1. 2 1
      Dockerfile
  2. 1 1
      README.md
  3. 3 1
      build.sh

+ 2 - 1
Dockerfile

@@ -3,7 +3,8 @@ FROM denoland/deno:alpine-1.19.3
 MAINTAINER Help-14 [mail@help14.com]
 LABEL maintainer="mail@help14.com"
 
-COPY src/* /app/
+RUN mkdir /app
 WORKDIR /app
+COPY src/* ./
 
 CMD deno run --allow-net --allow-read --allow-write main.ts

+ 1 - 1
README.md

@@ -20,7 +20,7 @@ Personal dashboard inspired by flame, highly customizable, lightweight and respo
 ## Customization
 Go to our [website](https://magma.help14.com) and read the document to  learn more.
 
-Long story short: [private folder](./src/private) is the original source code of the dashboard, anything in [public folder](./src/public) will replace the file with the same path in [private/themes/{selected theme in config}](./src/private/themes). 
+Long story short: [private folder](./src/private) is the original source code of the dashboard, anything in [public folder](./src/public) will replace the file with the same path in [private/themes/{selected theme}](./src/private/themes). 
 
 ## Contribution
 Contributions welcome and needed!

+ 3 - 1
build.sh

@@ -1 +1,3 @@
-#!/bin/bash
+#!/bin/bash
+
+docker build -t magma -f- ./ < Dockerfile