Skip to content

Commit

Permalink
moved workdir to top of build
Browse files Browse the repository at this point in the history
  • Loading branch information
mertalev committed Oct 24, 2023
1 parent 2aea880 commit 4e06c5b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@ RUN ./build-libvips.sh

FROM node:20.8-bookworm-slim

WORKDIR /usr/src/app

RUN sed -i -e's/ main/ main contrib non-free non-free-firmware/g' /etc/apt/sources.list.d/debian.sources
COPY bin/install-ffmpeg.sh bin/build-lock.json ./

RUN apt-get update && \
apt-get install --no-install-recommends -yqq \
$(if [ $(arch) = "x86_64" ]; then echo "intel-media-va-driver-non-free"; fi) \
Expand Down Expand Up @@ -77,4 +80,3 @@ RUN apt-get update && \

COPY --from=builder /usr/local/lib/ /usr/local/lib/
RUN ldconfig /usr/local/lib
WORKDIR /usr/src/app

0 comments on commit 4e06c5b

Please sign in to comment.