浏览代码

build: web client

Bryan Lee 1 年之前
父节点
当前提交
e4650a663b
共有 4 个文件被更改,包括 6 次插入4 次删除
  1. 5 2
      build/web/Dockerfile
  2. 1 1
      build/web/README.md
  3. 0 0
      build/web/serve.py
  4. 0 1
      export/.gitignore

+ 5 - 2
build/web/Dockerfile

@@ -10,8 +10,11 @@ ENV PYTHONUNBUFFERED=1
 
 WORKDIR /app
 
-# Copy the source code into the container.
-COPY . ./
+# Copy the source code.
+COPY ./export/web/ ./
+
+# Copy the server script.
+COPY ./build/web/serve.py ./
 
 # Expose the port that the application listens on.
 EXPOSE 9000

+ 1 - 1
build/web/README.md

@@ -7,7 +7,7 @@ Make sure to have Docker installed.
 To build the web client image, run the command below from the repository root:
 
 ```bash
-docker build --platform linux/x86_64 --tag {custom_tag} -f build/web/Dockerfile export/web
+docker build --platform linux/x86_64 --tag {custom_tag} -f build/web/Dockerfile .
 ```
 
 ## Pushing images to Docker Hub

+ 0 - 0
export/web/serve.py → build/web/serve.py


+ 0 - 1
export/.gitignore

@@ -3,7 +3,6 @@ server/*
 !server/.gitkeep
 web/*
 !web/.gitkeep
-!web/serve.py
 windows/*
 !windows/.gitkeep
 macos/*