File: Dockerfile

package info (click to toggle)
hub 2.14.2~ds1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, trixie
  • size: 1,376 kB
  • sloc: sh: 1,049; ruby: 857; makefile: 89
file content (24 lines) | stat: -rw-r--r-- 578 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM ruby:2.6

RUN apt-get update \
	&& apt-get install -y sudo golang --no-install-recommends
RUN apt-get purge --auto-remove -y curl \
	&& rm -rf /var/lib/apt/lists/*

RUN groupadd -r app && useradd -r -g app -G sudo app \
    && mkdir -p /home/app && chown -R app:app /home/app
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers

USER app

# throw errors if Gemfile has been modified since Gemfile.lock
RUN bundle config --global frozen 1

WORKDIR /home/app/workdir

COPY Gemfile Gemfile.lock ./
RUN bundle install

ENV LANG C.UTF-8
ENV GOFLAGS -mod=vendor
ENV USER app