Skip to content

Commit

Permalink
Attempt to fix Docker again
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorstrate committed Jul 8, 2022
1 parent 831e24f commit 0a73484
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ COPY ui /app
RUN npm run build -- --base=$UI_PUBLIC_URL

### Build API ###
FROM --platform=${BUILDPLATFORM:-linux/amd64} ubuntu:22.10 AS api
FROM --platform=${BUILDPLATFORM:-linux/amd64} debian:bookworm AS api
ARG TARGETPLATFORM

COPY docker/install_build_dependencies.sh /tmp/
Expand Down Expand Up @@ -67,7 +67,7 @@ COPY api /app
RUN go build -v -o photoview .

### Copy api and ui to production environment ###
FROM ubuntu:22.10
FROM debian:bookworm
ARG TARGETPLATFORM
WORKDIR /app

Expand Down
3 changes: 3 additions & 0 deletions ui/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,8 @@ export default defineConfig({
globals: true,
environment: 'jsdom',
setupFiles: './testing/setupTests.ts',
coverage: {
reporter: ['text', 'json', 'html'],
},
},
})

0 comments on commit 0a73484

Please sign in to comment.