docker image

This commit is contained in:
2022-07-14 00:26:07 +02:00
parent 8d5e348f56
commit 0e47dab6d4
4 changed files with 11 additions and 18 deletions

View File

@@ -1,7 +1,7 @@
# FRONTEND
FROM node:16-alpine as client
WORKDIR /tmp
RUN npm install -g pnpm
RUN npm install -g pnpm@7
COPY ./frontend ./
RUN pnpm install
RUN pnpm run build
@@ -18,9 +18,8 @@ RUN cargo build --release
# RUNNER
FROM alpine
WORKDIR /app
COPY ./entry.sh .
COPY --from=backend /tmp/target/release/cryptgeon .
COPY --from=client /tmp/build ./frontend/build
ENV REDIS=redis://redis/
EXPOSE 5000
ENTRYPOINT [ "/app/entry.sh" ]
ENTRYPOINT [ "/app/cryptgeon" ]