Add docker stuff

This commit is contained in:
Hugo Peixoto 2022-07-16 11:27:56 +01:00
parent 2705ad1611
commit bed4fee11b
3 changed files with 19 additions and 0 deletions

3
.dockerignore Normal file
View File

@ -0,0 +1,3 @@
log/*
tmp/*
Dockerfile

12
Dockerfile Normal file
View File

@ -0,0 +1,12 @@
FROM ruby:3.1.2-alpine
RUN apk add build-base libpq-dev tzdata
WORKDIR /app
ADD Gemfile* ./
RUN bundle
ADD . ./
CMD ["./entrypoint.sh"]

4
entrypoint.sh Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env sh
bin/rails db:migrate &&
bin/rails server