cryptgeon is a secure, open source note sharing service inspired by PrivNote written in rust & svelte.
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.
 
 
 
 
 
 

31 lines
487 B

# Frontend
FROM node:16-alpine as CLIENT
WORKDIR /tmp
COPY ./frontend ./
RUN npm install -g pnpm
RUN pnpm install
RUN pnpm run build
# Backend
FROM rust:1.59-alpine as RUST
WORKDIR /tmp
RUN apk add libc-dev openssl-dev alpine-sdk
COPY ./backend ./
RUN cargo build --release
# Server
FROM alpine
WORKDIR /app
COPY --from=RUST /tmp/target/release/cryptgeon .
COPY --from=CLIENT /tmp/build ./frontend/build
ENV MEMCACHE=memcached:11211
EXPOSE 5000
ENTRYPOINT [ "/app/cryptgeon" ]