Add docker stuff
This commit is contained in:
parent
2705ad1611
commit
bed4fee11b
3
.dockerignore
Normal file
3
.dockerignore
Normal file
|
@ -0,0 +1,3 @@
|
|||
log/*
|
||||
tmp/*
|
||||
Dockerfile
|
12
Dockerfile
Normal file
12
Dockerfile
Normal 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
4
entrypoint.sh
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
bin/rails db:migrate &&
|
||||
bin/rails server
|
Loading…
Reference in New Issue
Block a user