data_importer/Dockerfile
kenna-bmcdevitt d6ff9fe367 more updates
2024-08-21 10:30:18 -05:00

19 lines
557 B
Docker

# syntax=docker/dockerfile:1
FROM ruby:latest
RUN apt-get update -qq && apt-get install -y nodejs postgresql-client less bzip2
WORKDIR /data_importer
COPY Gemfile /data_importer/Gemfile
#COPY Gemfile.lock /data_importer/Gemfile.lock
RUN bundle update
RUN bundle install
ENV PAGER=less
# Add a script to be executed every time the container starts.
COPY entrypoint.sh /usr/bin/
RUN chmod +x /usr/bin/entrypoint.sh
ENTRYPOINT ["entrypoint.sh"]
EXPOSE 3000
# Configure the main process to run when running the image
CMD ["rails", "server", "-b", "0.0.0.0"]