Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
vitabaks committed Aug 5, 2024
1 parent 1622f7e commit d8557a3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 1,146 deletions.
7 changes: 4 additions & 3 deletions console/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ RUN yarn install --frozen-lockfile --network-timeout 1000000 && yarn vite build

# Build the console image
FROM nginx:1.26-bookworm
LABEL maintainer="Vitaliy Kukharik [email protected]"

COPY --from=api-builder /go/src/pg-console/pg-console /usr/local/bin/
COPY --from=api-builder /go/src/pg-console/db/migrations /etc/db/migrations
COPY console/db/migrations /etc/db/migrations
COPY --from=ui-builder /usr/src/pg-console/dist /usr/share/nginx/html/
COPY --from=ui-builder /usr/src/pg-console/nginx/nginx.conf /etc/nginx/
COPY --from=ui-builder /usr/src/pg-console/env.sh /usr/src/pg-console/.env /usr/src/pg-console/.env.production /usr/share/nginx/html/
COPY console/ui/nginx/nginx.conf /etc/nginx/
COPY console/ui/env.sh console/ui/.env console/ui/.env.production /usr/share/nginx/html/
RUN chmod +x /usr/share/nginx/html/env.sh

ARG POSTGRES_VERSION
Expand Down
3 changes: 2 additions & 1 deletion console/service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ COPY console/service/ .
RUN make build_in_docker

FROM debian:bookworm-slim
LABEL maintainer="Vitaliy Kukharik [email protected]"

COPY --from=builder /go/src/pg-console/pg-console /usr/local/bin/
COPY --from=builder /go/src/pg-console/db/migrations /etc/db/migrations
COPY console/db/migrations /etc/db/migrations

CMD ["/usr/local/bin/pg-console"]
107 changes: 0 additions & 107 deletions console/service/db/README.md

This file was deleted.

Loading

0 comments on commit d8557a3

Please sign in to comment.