Add docker stuff

main
Hugo Peixoto 5 months ago
parent 2705ad1611
commit bed4fee11b
  1. 3
      .dockerignore
  2. 12
      Dockerfile
  3. 4
      entrypoint.sh

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

@ -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"]

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