-
-
Notifications
You must be signed in to change notification settings - Fork 533
Expand file tree
/
Copy pathDockerfile
More file actions
50 lines (41 loc) · 979 Bytes
/
Dockerfile
File metadata and controls
50 lines (41 loc) · 979 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
ARG IMAGE="ruby"
FROM ${IMAGE} AS build
RUN apt-get update && apt-get install -y --no-install-recommends \
sudo \
gnupg \
git \
curl \
wget \
build-essential \
pkg-config \
libssl-dev \
libreadline-dev \
zlib1g-dev \
autoconf \
bison \
libyaml-dev \
libncurses5-dev \
libffi-dev \
libgdbm-dev \
sqlite3 \
nodejs \
npm \
chromium \
chromium-driver \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN echo "sentry ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/sentry \
&& chmod 0440 /etc/sudoers.d/sentry
RUN groupadd --gid 1000 sentry \
&& useradd --uid 1000 --gid sentry --shell /bin/bash --create-home sentry
WORKDIR /workspace/sentry
RUN chown -R sentry:sentry /workspace/sentry
ARG VERSION
ARG GEM_HOME="/workspace/sentry/vendor/gems/${VERSION}"
ENV LANG=C.UTF-8 \
BUNDLE_JOBS=4 \
BUNDLE_RETRY=3 \
GEM_HOME=/workspace/sentry/vendor/gems/${VERSION} \
PATH=$PATH:${GEM_HOME}/bin \
REDIS_HOST=redis
USER sentry