add webserver container

master
Dirk Heilig 2021-01-04 11:12:51 +01:00
parent c5c5586ff1
commit bf1f87c6e8
6 changed files with 13 additions and 1 deletions

View File

@ -10,7 +10,7 @@ RUN apt-get install -y \
RUN pecl install Mosquitto-alpha
RUN echo "extension=mosquitto.so" >/etc/php/7.3/mods-available/mosquitto.ini
RUN ln -s /etc/php/7.3/mods-available/mosquitto.ini /etc/php/7.3/cli/conf.d/20-mosquitto.ini
ADD . /app
ADD .. /app
VOLUME /app/public

View File

@ -0,0 +1,7 @@
FROM debian:buster
RUN apt-get update && apt-get install -y nginx-light
ADD spaceapi.conf /etc/nginx/sites-available
RUN rm /etc/nginx/sites-enabled/*
RUN ln -s /etc/nginx/sites-available/spaceapi.conf /etc/nginx/sites-enabled/
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

View File

@ -0,0 +1,5 @@
server {
listen 80 default_server;
root /ap/public;
index spaceapi.json;
}