Test a new docker image base
This commit is contained in:
parent
19f7456a03
commit
6bd9b38504
31
Dockerfile
31
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
|
||||
EXPOSE 80
|
||||
Loading…
Reference in a new issue