dotfiles/vscode/.vscode/extensions/ms-azuretools.vscode-docker-1.29.1/resources/templates/ruby/Dockerfile.template
2024-08-02 10:42:24 -06:00

19 lines
340 B
Docker

FROM ruby:slim
LABEL Name={{ serviceName }} Version={{ version }}
{{#each ports}}
EXPOSE {{ . }}
{{/each}}
# throw errors if Gemfile has been modified since Gemfile.lock
RUN bundle config --global frozen 1
WORKDIR /app
COPY . /app
COPY Gemfile Gemfile.lock ./
RUN bundle install
CMD ["ruby", "{{ serviceName }}.rb"]