mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2025-04-20 07:11:33 +02:00
Add Dockerfile and docker-compose config
This commit is contained in:
parent
0a702a18be
commit
1b60c08e9f
3 changed files with 32 additions and 0 deletions
15
Dockerfile
Normal file
15
Dockerfile
Normal file
|
@ -0,0 +1,15 @@
|
|||
FROM ruby:2.2
|
||||
RUN apt-get update && apt-get install -y build-essential zlib1g-dev libsqlite3-dev nodejs nodejs-legacy
|
||||
|
||||
RUN mkdir -p /app
|
||||
|
||||
WORKDIR /tmp
|
||||
COPY Gemfile Gemfile
|
||||
COPY Gemfile.lock Gemfile.lock
|
||||
RUN bundle install
|
||||
|
||||
ADD . /app
|
||||
WORKDIR /app
|
||||
|
||||
EXPOSE 3000
|
||||
CMD ["rails", "server", "-b", "0.0.0.0"]
|
Loading…
Add table
Add a link
Reference in a new issue