Bryan Lee 1 жил өмнө
parent
commit
e4650a663b

+ 5 - 2
build/web/Dockerfile

@@ -10,8 +10,11 @@ ENV PYTHONUNBUFFERED=1
 
 
 WORKDIR /app
 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 the port that the application listens on.
 EXPOSE 9000
 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:
 To build the web client image, run the command below from the repository root:
 
 
 ```bash
 ```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
 ## 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
 !server/.gitkeep
 web/*
 web/*
 !web/.gitkeep
 !web/.gitkeep
-!web/serve.py
 windows/*
 windows/*
 !windows/.gitkeep
 !windows/.gitkeep
 macos/*
 macos/*