Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mpiorowski committed Dec 21, 2023
1 parent 228c54b commit 8c1ff38
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
8 changes: 3 additions & 5 deletions client/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ CMD npm run dev

# Build
FROM node:20-slim AS build
WORKDIR /client

COPY package.json /client/package.json
COPY package-lock.json /client/package-lock.json
WORKDIR /client

ARG ENV
ARG COOKIE_DOMAIN
Expand All @@ -47,9 +45,9 @@ RUN echo "NOTES_URI=${NOTES_URI}" >> .env
RUN echo "UTILS_URI=${UTILS_URI}" >> .env
RUN echo "UPSEND_KEY=${UPSEND_KEY}" >> .env

RUN npm install
COPY . .
COPY . /client

RUN npm install
RUN npm run build

# Production
Expand Down
7 changes: 3 additions & 4 deletions service-users/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,16 @@ WORKDIR /app
COPY src /app/src
COPY Cargo.toml /app/Cargo.toml
COPY Cargo.lock /app/Cargo.lock
COPY public.key /app/public.key
RUN cargo build --release

# Production
FROM debian:bullseye-slim AS prod
FROM debian:bookworm-slim AS prod

WORKDIR /app

COPY --from=build /app/target/release /app
COPY ./public.key ./public.key
COPY public.key /app/public.key

RUN apt-get update && apt-get install -y openssl ca-certificates # libpq-dev libssl-dev
RUN apt-get update && apt-get install -y openssl ca-certificates libssl-dev # libpq-dev

CMD ["/app/rusve-users"]

0 comments on commit 8c1ff38

Please sign in to comment.