-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLayerfile
More file actions
23 lines (22 loc) · 1000 Bytes
/
Layerfile
File metadata and controls
23 lines (22 loc) · 1000 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#Use an Ubuntu 18.04 base for our staging server
FROM vm/ubuntu:18.04
#Set the timezone to UTC
ENV DEBIAN_FRONTEND noninteractive
ENV DEBCONF_NONINTERACTIVE_SEEN true
RUN apt-get update -qq
RUN DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true TZ=Etc/UTC apt-get install -yqq --no-install-recommends build-essential bison flex ca-certificates openssl libssl-dev bc wget git curl cmake pkg-config
RUN update-ca-certificates
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
RUN apt install -y musl-tools musl-dev
RUN update-ca-certificates
RUN rustup component add clippy
RUN rustup component add rustfmt
RUN cargo install ripgrep
WORKDIR /code
COPY . .
RUN ./scripts/yarn_and_build.sh
ENV TERRAPHIM_SERVER_HOSTNAME=0.0.0.0:8000
RUN cargo build --release
RUN git clone --depth 1 https://github.com/terraphim/INCOSE-Systems-Engineering-Handbook.git /tmp/system_operator/
RUN BACKGROUND /code/target/release/terraphim_server
EXPOSE WEBSITE http://localhost:8000