diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 1b981b4..0a5bcba 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -38,7 +38,8 @@ jobs: # compose-file: docker-compose.yml - name: Run Docker container - run: sudo docker run -d -p 8086:80 -v /mnt/appdata/dev/dist:/usr/share/nginx/html:ro thethomaas/11ty-workflow-example:latest + run: sudo docker run -d -p 8086:80 --name dev thethomaas/11ty-workflow-example:latest + # run: sudo docker run -d -p 8086:80 -v /mnt/appdata/dev/dist:/usr/share/nginx/html:ro thethomaas/11ty-workflow-example:latest # - name: Start Docker Compose services # run: docker-compose up -d diff --git a/Dockerfile b/Dockerfile index 49712ca..b730076 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,18 +1,30 @@ # Use a lightweight Node.js runtime as the base image for the final stage FROM node:14-alpine -# Set the working directory in the container -WORKDIR /app +# # Set the working directory in the container +# WORKDIR /app + +# # Copy the compiled site from the build context into the image +# ARG SITE_DIRECTORY +# COPY $SITE_DIRECTORY ./dist + +# # Expose the port your application listens on (if applicable) +# # EXPOSE 3000 + +# # Define any additional configuration or runtime commands as needed +# # ... + +# # Example: Start a simple HTTP server to serve the static files +# CMD ["npx", "http-server", "dist"] + + +FROM jfloff/alpine-python:latest + +RUN mkdir -p /var/www + +WORKDIR /var/www -# Copy the compiled site from the build context into the image ARG SITE_DIRECTORY -COPY $SITE_DIRECTORY ./dist +COPY $SITE_DIRECTORY /var/www -# Expose the port your application listens on (if applicable) -# EXPOSE 3000 - -# Define any additional configuration or runtime commands as needed -# ... - -# Example: Start a simple HTTP server to serve the static files -CMD ["npx", "http-server", "dist"] +CMD python3 -m http.server 80 \ No newline at end of file