Skip to content
Snippets Groups Projects
Commit 85d695b9 authored by Thomas Schauer-Köckeis's avatar Thomas Schauer-Köckeis :speech_balloon:
Browse files

Added web server

parent afc74e6d
No related branches found
No related tags found
No related merge requests found
FROM nginx:mainline-alpine-slim
RUN apk update && apk upgrade
# copy files
WORKDIR /home/webserver
COPY ./nginx.conf /etc/nginx/
COPY ./files /home/webserver/repo
# expose and run
EXPOSE 8080
services:
website:
build: .
ports:
- 8080:8080
events {}
http {
include mime.types;
default_type application/octet-stream;
server {
listen 8080;
server_name localhost;
root /home/webserver/repo/;
location / {
satisfy any;
add_header Access-Control-Allow-Origin *;
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment