-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile.github-ci
More file actions
26 lines (20 loc) · 994 Bytes
/
Dockerfile.github-ci
File metadata and controls
26 lines (20 loc) · 994 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
FROM ptrxyz/internal:eln-1.8.0-rc4
ARG BRANCH=master
RUN apt-get install -y --no-install-recommends --autoremove --fix-missing \
build-essential\
openssh-server\
libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb
WORKDIR "/chemotion/app"
# avoid caching if newer commits are present
ADD "https://api.github.com/repos/ComPlat/chemotion_REPO/commits/${BRANCH}?per_page=1" latest_commit.json
RUN curl -LJO https://raw.githubusercontent.com/ComPlat/chemotion_REPO/${BRANCH}/Gemfile
RUN curl -LJO https://raw.githubusercontent.com/ComPlat/chemotion_REPO/${BRANCH}/Gemfile.lock
RUN curl -LJO https://raw.githubusercontent.com/ComPlat/chemotion_REPO/${BRANCH}/package.json
RUN curl -LJO https://raw.githubusercontent.com/ComPlat/chemotion_REPO/${BRANCH}/yarn.lock
# COPY Gemfile .
# COPY Gemfile.lock .
# COPY package.json .
# COPY yarn.lock .
RUN bundle config set without ''
RUN bundle install
RUN yarn install --production=false