mirror of
https://github.com/iritmaximus/brewery.git
synced 2026-10-12 19:13:49 +03:00
dockerized the project
This commit is contained in:
+14
@@ -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"]
|
||||
Reference in New Issue
Block a user