Skip to content

Commit

Permalink
Build sharp from source
Browse files Browse the repository at this point in the history
  • Loading branch information
nkalupahana committed Oct 3, 2024
1 parent cd16aa3 commit d58c930
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
FROM node:18-slim

RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
apt-get install -y libvips && \
apt-get install -y g++ libvips libvips-dev make pkg-config && \
apt-get clean

WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install --build-from-source [email protected]
RUN npm ci
COPY . ./
ENV NODE_ENV=production

CMD [ "npm", "start" ]
CMD [ "npm", "start" ]

0 comments on commit d58c930

Please sign in to comment.