Bundle in a container for deployment.
1 parent 1269fe7 commit 207ae7a0773c2d0ac505344b400a74920fa91c49
@Alex Tucker Alex Tucker authored on 8 Jun 2019
Showing 2 changed files
View
18
Dockerfile 0 → 100644
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"]
View
19
docker-compose.yml 0 → 100644
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