From 1adf3ef501e46e358d1ec24b4bb146a53c8e159c Mon Sep 17 00:00:00 2001 From: "Krzysztof R." Date: Sun, 12 May 2024 14:15:53 +0200 Subject: [PATCH] Revert "feat: make website actually display something" This reverts commit e35b578120270a3493042b0931cda59c63b097d3. --- Dockerfile | 20 ++++++++++++-------- index.html | 9 --------- 2 files changed, 12 insertions(+), 17 deletions(-) delete mode 100644 index.html diff --git a/Dockerfile b/Dockerfile index ef351e2c..3cb976fb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,15 @@ -# Use the official Nginx image from the Docker Hub -FROM nginx:alpine +FROM node:latest -# Copy the static website file into the Nginx server directory -COPY index.html /usr/share/nginx/html/index.html +# Create app directory +WORKDIR /usr/src/app -# Expose port 80 -EXPOSE 80 +# Install app dependencies -# Start Nginx and keep it running in the foreground -CMD ["nginx", "-g", "daemon off;"] +# If you also need http-server globally +RUN npm install -g http-server + +# Bundle app source +COPY . . + +EXPOSE 8080 +CMD ["http-server", "-p 8080"] diff --git a/index.html b/index.html deleted file mode 100644 index d293229d..00000000 --- a/index.html +++ /dev/null @@ -1,9 +0,0 @@ - - - - Hello World - - -

Hello world

- -