You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
470 B
29 lines
470 B
FROM node:16-alpine as CLIENT |
|
|
|
WORKDIR /tmp |
|
COPY ./client ./ |
|
|
|
RUN npm install -g pnpm |
|
RUN pnpm install |
|
RUN pnpm 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 |
|
|
|
EXPOSE 5000 |
|
|
|
ENTRYPOINT [ "/app/cryptgeon" ]
|
|
|