forked from bedrock-viz/bedrock-viz
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
24 lines (15 loc) · 785 Bytes
/
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
FROM debian:bullseye@sha256:e91d1b0684e0f26a29c2353c52d4814f4d153e10b1faddf9fbde473ed71e2fcf as builder
RUN apt-get update && \
apt-get install --no-install-recommends -y cmake g++ build-essential libboost-program-options1.74-dev libpng++-dev zlib1g-dev
COPY . /bedrock-viz
WORKDIR /bedrock-viz
RUN ./buildscript.sh
FROM node:23.3.0-bullseye-slim@sha256:87dd73937fa027300faff8cff62e4b82ac7ee135a20a08044215b5827925031e
RUN apt-get update && \
apt-get install --no-install-recommends -y libboost-program-options1.74.0 libpng16-16 && \
rm -rf /var/cache/apt
COPY --from=builder /usr/local/share/bedrock-viz /usr/local/share/bedrock-viz
COPY --from=builder /usr/local/bin/bedrock-viz /usr/local/bin/
COPY frontend.js ./
EXPOSE 3333
ENTRYPOINT ["node", "frontend.js"]