dockerized the project

This commit is contained in:
iritmaximus
2023-05-31 17:32:54 +03:00
parent a25555e8f8
commit c8c9cb5a48
2 changed files with 24 additions and 0 deletions
+14
View File
@@ -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"]
+10
View File
@@ -0,0 +1,10 @@
version: "3.7"
services:
brewery:
build:
context: .
ports:
- "5555:5555"
# volumes:
# - ./:/home/app