11ty-coolify-deploy/Dockerfile
2023-05-24 22:40:19 +02:00

30 lines
694 B
Docker

# 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
# # 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
ARG SITE_DIRECTORY
COPY $SITE_DIRECTORY /var/www
CMD python3 -m http.server 80