2022-03-30 22:52:39 -05:00
|
|
|
# syntax=docker/dockerfile:1
|
2022-04-21 14:30:29 -05:00
|
|
|
FROM ruby:latest
|
2022-05-30 12:18:40 -05:00
|
|
|
RUN apt-get update -qq && apt-get install -y nodejs postgresql-client less bzip2
|
2022-03-30 22:52:39 -05:00
|
|
|
WORKDIR /data_importer
|
|
|
|
COPY Gemfile /data_importer/Gemfile
|
2024-08-20 14:37:22 -05:00
|
|
|
#COPY Gemfile.lock /data_importer/Gemfile.lock
|
2024-08-21 10:30:18 -05:00
|
|
|
RUN bundle update
|
2022-03-30 22:52:39 -05:00
|
|
|
RUN bundle install
|
2022-04-01 13:36:20 -05:00
|
|
|
ENV PAGER=less
|
2024-08-22 14:00:44 -05:00
|
|
|
ENV LANG='UTF-8'
|
2022-03-30 22:52:39 -05:00
|
|
|
|
|
|
|
# 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"]
|
|
|
|
|