mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2024-11-17 11:07:04 +01:00
26 lines
425 B
Docker
26 lines
425 B
Docker
FROM node:16-alpine as CLIENT
|
|
|
|
WORKDIR /tmp
|
|
COPY ./client ./
|
|
|
|
RUN npm ci
|
|
RUN npm run build
|
|
|
|
FROM rust:1.51-alpine as RUST
|
|
|
|
WORKDIR /tmp
|
|
RUN apk add libc-dev openssl-dev alpine-sdk
|
|
COPY ./Cargo* ./
|
|
COPY ./src ./src
|
|
|
|
RUN cargo build --release
|
|
|
|
FROM scratch
|
|
|
|
WORKDIR /app
|
|
COPY --from=RUST /tmp/target/release/cryptgeon .
|
|
COPY --from=CLIENT /tmp/build ./client/build
|
|
|
|
ENV MEMCACHE=memcached:11211
|
|
|
|
ENTRYPOINT [ "/app/cryptgeon" ] |