Docker Community Forums

Share and learn in the Docker community.

Openalpr with alpine

Hello !
I am using Docker image based on Alpine and i didn’t to find a way to download openalpr on it
can you help me !
this is my Dockerfile

FROM ruby:2.7.1-alpine

RUN apk update -q

RUN apk add -q --no-cache build-base git patch postgresql-dev

ARG IMG_NAME=‘alpr-api’

ARG CONFIG_PATH=/etc/$IMG_NAME

ENV INSTALL_PATH /home/$IMG_NAME

RUN mkdir -p $INSTALL_PATH

WORKDIR $INSTALL_PATH

COPY Gemfile $INSTALL_PATH

COPY Gemfile.lock $INSTALL_PATH

RUN gem install bundler:2.0.2

RUN bundle install --without development test

COPY db $INSTALL_PATH/db

COPY config $INSTALL_PATH/config

COPY bin $INSTALL_PATH/bin

COPY Rakefile $INSTALL_PATH

COPY config.ru $INSTALL_PATH

COPY entrypoint.sh $INSTALL_PATH

COPY app $INSTALL_PATH/app

COPY public $INSTALL_PATH/public

COPY lib $INSTALL_PATH/lib

Kubernetes special directory for deployment configuration files. DO NOT EDIT

RUN mkdir -p $CONFIG_PATH/config

RUN ln -sf $CONFIG_PATH/config/database.yml $INSTALL_PATH/config/database.yml

RUN ln -sf $CONFIG_PATH/config/munic_sso.yml $INSTALL_PATH/config/munic_sso.yml

RUN ln -sf $CONFIG_PATH/config/sentry.yml $INSTALL_PATH/config/sentry.yml

RUN ln -sf $CONFIG_PATH/config/dashboard.yml $INSTALL_PATH/config/dashboard.yml

RUN chown -R 10000 $INSTALL_PATH

USER 10000

EXPOSE 3070

CMD ["./entrypoint.sh"]