mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 11:17:49 +01:00
25 lines
513 B
Docker
25 lines
513 B
Docker
FROM ruby:2.6.3
|
|
|
|
RUN curl -sL https://deb.nodesource.com/setup_11.x | bash -
|
|
RUN apt-get update -qq && apt-get install -y nodejs postgresql-client
|
|
RUN npm install -g yarn
|
|
|
|
RUN mkdir /app
|
|
WORKDIR /app
|
|
|
|
COPY Gemfile /app/Gemfile
|
|
COPY Gemfile.lock /app/Gemfile.lock
|
|
RUN bundle install
|
|
|
|
RUN yarn install --check-files
|
|
|
|
COPY . /app
|
|
|
|
# Add a script to be executed every time the container starts.
|
|
ENTRYPOINT ["/app/docker-entrypoint.sh"]
|
|
|
|
EXPOSE 3000
|
|
|
|
# Start the main process.
|
|
CMD ["rails", "server", "-b", "0.0.0.0"]
|