mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-06 16:03:18 +02:00
Revert "feat: make website actually display something"
This reverts commit e35b578120.
This commit is contained in:
parent
e35b578120
commit
1adf3ef501
20
Dockerfile
20
Dockerfile
@ -1,11 +1,15 @@
|
|||||||
# Use the official Nginx image from the Docker Hub
|
FROM node:latest
|
||||||
FROM nginx:alpine
|
|
||||||
|
|
||||||
# Copy the static website file into the Nginx server directory
|
# Create app directory
|
||||||
COPY index.html /usr/share/nginx/html/index.html
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
# Expose port 80
|
# Install app dependencies
|
||||||
EXPOSE 80
|
|
||||||
|
|
||||||
# Start Nginx and keep it running in the foreground
|
# If you also need http-server globally
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
RUN npm install -g http-server
|
||||||
|
|
||||||
|
# Bundle app source
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
EXPOSE 8080
|
||||||
|
CMD ["http-server", "-p 8080"]
|
||||||
|
|||||||
@ -1,9 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>Hello World</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>Hello world</h1>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
Loading…
Reference in New Issue
Block a user