diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3ab2440 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM ruby:3.1.2 + +ENV PORT 3000 +EXPOSE $PORT + +WORKDIR /home/app + +RUN apt-get update && apt-get install -y npm && npm install -g yarn + +COPY Gemfile Gemfile.lock ./ +RUN bundle install +COPY . . + +CMD ["bundle", "exec", "rails", "server", "-b", "0.0.0.0", "-p", "5555"] diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..181b18f --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,10 @@ +version: "3.7" + +services: + brewery: + build: + context: . + ports: + - "5555:5555" + # volumes: + # - ./:/home/app