Update docker image
This commit is contained in:
parent
89926d8a31
commit
0ca2764304
|
|
@ -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
|
||||
|
|
|
|||
36
Dockerfile
36
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
|
||||
Loading…
Reference in a new issue