forked from ComPlat/chemotion_ELN
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.github-ci
More file actions
25 lines (19 loc) · 874 Bytes
/
Dockerfile.github-ci
File metadata and controls
25 lines (19 loc) · 874 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
FROM ptrxyz/chemotion:eln-1.5.0
ARG BRANCH=main
RUN apt-get install -y --no-install-recommends --autoremove --fix-missing \
build-essential\
openssh-server
WORKDIR "/chemotion/app"
# avoid caching if newer commits are present
ADD "https://api.github.com/repos/ComPlat/chemotion_ELN/commits/${BRANCH}?per_page=1" latest_commit.json
RUN curl -LJO https://raw.githubusercontent.com/ComPlat/chemotion_ELN/${BRANCH}/Gemfile
RUN curl -LJO https://raw.githubusercontent.com/ComPlat/chemotion_ELN/${BRANCH}/Gemfile.lock
RUN curl -LJO https://raw.githubusercontent.com/ComPlat/chemotion_ELN/${BRANCH}/package.json
RUN curl -LJO https://raw.githubusercontent.com/ComPlat/chemotion_ELN/${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