This commit is contained in:
2021-10-05 10:22:47 -04:00
parent e971aaa9a0
commit a99458f02b
3 changed files with 42 additions and 31 deletions

View File

@@ -1,9 +1,16 @@
FROM ruby:2.7.1
RUN apt-get update && apt-get install -y
RUN apt-get install -y nodejs sqlite3
RUN apt-get install npm -y
WORKDIR /code
COPY . /code
RUN cd public && npm install
RUN cd ..
RUN bundle install
EXPOSE 4567
CMD ["bundle", "exec", "rackup", "--host", "0.0.0.0", "-p", "4567"]
CMD ["bundle", "exec", "puma", "-p", "4567"]