@@ -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
@@ -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
@@ -3,7 +3,6 @@ server/*
!server/.gitkeep
web/*
!web/.gitkeep
-!web/serve.py
windows/*
!windows/.gitkeep
macos/*