Skip to content
Dockerfile 519 B
Newer Older
Chevdor's avatar
Chevdor committed
LABEL author="[email protected]"

WORKDIR /opt/builder

COPY . .
RUN curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh -s -- -y && \
    . $HOME/.cargo/env && \
    cargo install wasm-pack && \
    yarn install && \
    yarn build

# ---------------------------------

Chevdor's avatar
Chevdor committed
WORKDIR /usr/src/app

COPY --from=builder /opt/builder /usr/src/app

Zeke Mostov's avatar
Zeke Mostov committed
ENV SAS_EXPRESS_PORT=8080
ENV SAS_EXPRESS_BIND_HOST=0.0.0.0
Chevdor's avatar
Chevdor committed

Zeke Mostov's avatar
Zeke Mostov committed
EXPOSE ${SAS_EXPRESS_PORT}
Chevdor's avatar
Chevdor committed
CMD [ "node", "build/src/main.js" ]