From 6bd9b3850484416a8ed294f00327d0a8a4f14d17 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Fri, 26 May 2023 21:43:01 +0200 Subject: [PATCH] Test a new docker image base --- Dockerfile | 31 ++++++++++--------------------- 1 file changed, 10 insertions(+), 21 deletions(-) diff --git a/Dockerfile b/Dockerfile index ae5e8d1..00927a9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,30 +1,19 @@ -# Use a lightweight Node.js runtime as the base image for the final stage -# FROM node:14-alpine +# FROM jfloff/alpine-python:latest -# # Set the working directory in the container -# WORKDIR /app +# 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 -FROM jfloff/alpine-python:latest -RUN mkdir -p /var/www +FROM lipanski/docker-static-website:latest -WORKDIR /var/www +ARG SITE_DIRECTORY=dist +COPY $SITE_DIRECTORY . -ARG SITE_DIRECTORY -COPY $SITE_DIRECTORY /var/www - -CMD python3 -m http.server 80 \ No newline at end of file +EXPOSE 80 \ No newline at end of file