diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..20bf9a1 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM ruby:2.4-alpine + +COPY Gemfile /webapp/ +RUN \ + apk --no-cache -t .dev add build-base git && \ + cd /webapp && \ + bundle && \ + bundle install && \ + apk del .dev && \ + apk --no-cache add libcurl + +COPY app.rb /webapp/ +COPY public /webapp/public +COPY views /webapp/views + +WORKDIR /webapp +EXPOSE 4567 +CMD ["ruby", "app.rb"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..144df58 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,18 @@ +version: '3' + +services: + csvlint: + build: . + environment: + - VIRTUAL_HOST=csvlint.floop.org.uk + - VIRTUAL_PORT=4567 + - LETSENCRYPT_HOST=csvlint.floop.org.uk + - LETSENCRYPT_EMAIL=alex@floop.org.uk + networks: + - cloudfluff_proxy + - default + restart: always + +networks: + cloudfluff_proxy: + external: true