IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
Просмотр исходного кода

Started working on dockerization.

pull/1/head
Stanislaw Adaszewski 4 лет назад
Родитель
Сommit
4c9604c011
2 измененных файлов: 31 добавлений и 0 удалений
  1. +13
    -0
      dockerfiles/wba/Dockerfile
  2. +18
    -0
      dockerfiles/wba/files/default.conf

+ 13
- 0
dockerfiles/wba/Dockerfile Просмотреть файл

@@ -0,0 +1,13 @@
FROM alpine:3.11.3

RUN apk update && apk add nginx && \
mv /etc/nginx/nginx.conf tmp.conf && \
echo "daemon off;" >/etc/nginx/nginx.conf && \
echo "" >>/etc/nginx/nginx.conf && \
cat tmp.conf >>/etc/nginx/nginx.conf && \
rm tmp.conf && \
mkdir /run/nginx

COPY files/default.conf /etc/nginx/conf.d/default.conf

RUN apk add gettext

+ 18
- 0
dockerfiles/wba/files/default.conf Просмотреть файл

@@ -0,0 +1,18 @@
# This is a default site configuration which will simply return 404, preventing
# chance access to any other virtualhost.

server {
listen ${PORT0} default_server;
listen [::]:${PORT0} default_server;

# Everything is a 404
location / {
return 404;
}

# You may need this to prevent return 404 recursion.
location = /404.html {
internal;
}
}


Загрузка…
Отмена
Сохранить