-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
65 lines (59 loc) · 2.46 KB
/
Dockerfile
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
ARG SUSHI_VERSION=
### SUSHI ALPINE
FROM mcr.microsoft.com/devcontainers/base:alpine as fsh-sushi-alpine
RUN apk update \
&& apk add nodejs npm
# Update sources for nodejs
# RUN curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
# RUN apt update \
# && apt install -y \
# nodejs
ARG SUSHI_VERSION=
RUN npm install -g fsh-sushi@${SUSHI_VERSION}
### SUSHI UBUNTU
FROM mcr.microsoft.com/devcontainers/base:ubuntu as fsh-sushi-ubuntu
# Update sources for nodejs
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
RUN apt update \
&& apt install -y \
nodejs
ARG SUSHI_VERSION=
RUN npm install -g fsh-sushi@${SUSHI_VERSION}
### PUB BASE ALPINE
FROM ghcr.io/cybernop/vscode-fhir-devcontainer/fsh-sushi:${SUSHI_VERSION}-alpine AS pub-base-alpine
RUN apk update \
&& apk add --no-cache \
linux-headers \
openjdk17-jdk \
ruby-dev \
msttcorefonts-installer \
fontconfig
RUN gem install jekyll
RUN update-ms-fonts
RUN wget -q -P /workspaces https://raw.githubusercontent.com/HL7/ig-publisher-scripts/main/_updatePublisher.sh \
&& chmod a+x /workspaces/_updatePublisher.sh
RUN wget -q -P /workspaces https://github.com/hapifhir/org.hl7.fhir.core/releases/latest/download/validator_cli.jar \
&& printf "#!/bin/bash\njava -jar ../validator_cli.jar -html-output validation.html fsh-generated/resources" >> /workspaces/validate.sh \
&& chmod a+x /workspaces/validate.sh
### RUB BASE UBUNTU
FROM ghcr.io/cybernop/vscode-fhir-devcontainer/fsh-sushi:${SUSHI_VERSION}-ubuntu AS pub-base-ubuntu
RUN apt update \
&& apt install -y \
openjdk-17-jdk \
ruby-full \
build-essential \
zlib1g-dev
RUN gem install jekyll
RUN wget -q -P /workspaces https://raw.githubusercontent.com/HL7/ig-publisher-scripts/main/_updatePublisher.sh \
&& chmod a+x /workspaces/_updatePublisher.sh
RUN wget -q -P /workspaces https://github.com/hapifhir/org.hl7.fhir.core/releases/latest/download/validator_cli.jar \
&& printf "#!/bin/bash\njava -jar ../validator_cli.jar -html-output validation.html fsh-generated/resources" >> /workspaces/validate.sh \
&& chmod a+x /workspaces/validate.sh
### IG PUBLISHER ALPINE
FROM ghcr.io/cybernop/vscode-fhir-devcontainer/pub-base:alpine as ig-publisher-alpine
ARG SUSHI_VERSION=
RUN npm install -g fsh-sushi@${SUSHI_VERSION}
### IG PUBLISHER UBUNTU
FROM ghcr.io/cybernop/vscode-fhir-devcontainer/pub-base:ubuntu as ig-publisher-ubuntu
ARG SUSHI_VERSION=
RUN npm install -g fsh-sushi@${SUSHI_VERSION}