Update docker image
All checks were successful
Deploy to Docker Container / deploy (push) Successful in 50s
All checks were successful
Deploy to Docker Container / deploy (push) Successful in 50s
This commit is contained in:
parent
89926d8a31
commit
0ca2764304
|
|
@ -38,7 +38,8 @@ jobs:
|
||||||
# compose-file: docker-compose.yml
|
# compose-file: docker-compose.yml
|
||||||
|
|
||||||
- name: Run Docker container
|
- 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
|
# - name: Start Docker Compose services
|
||||||
# run: docker-compose up -d
|
# 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
|
# Use a lightweight Node.js runtime as the base image for the final stage
|
||||||
FROM node:14-alpine
|
FROM node:14-alpine
|
||||||
|
|
||||||
# Set the working directory in the container
|
# # Set the working directory in the container
|
||||||
WORKDIR /app
|
# 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
|
ARG SITE_DIRECTORY
|
||||||
COPY $SITE_DIRECTORY ./dist
|
COPY $SITE_DIRECTORY /var/www
|
||||||
|
|
||||||
# Expose the port your application listens on (if applicable)
|
CMD python3 -m http.server 80
|
||||||
# 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"]
|
|
||||||
Loading…
Reference in a new issue