Files
smartmeter/Dockerfile
Aart van Halteren 83364d13cf Cost calculations
2022-01-09 17:58:12 +01:00

22 lines
421 B
Docker

FROM ruby:2.7
ENV BUILD_PACKAGES="apt-utils build-essential curl less nodejs sudo wget zsh libmariadb-dev libserialport-dev cron"
# throw errors if Gemfile has been modified since Gemfile.lock
RUN \
bundle config --global frozen 1
WORKDIR /usr/src/app
COPY Gemfile Gemfile.lock ./
RUN \
apt-get update -qq && \
apt-get install -y $BUILD_PACKAGES && \
bundle install
COPY . .
CMD ["ruby ./smartmeter.rb"]