Skip to content

Commit

Permalink
Update docker image version
Browse files Browse the repository at this point in the history
  • Loading branch information
backjonas committed Sep 30, 2023
1 parent 48350a5 commit a673438
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

FROM node:16-alpine as build
FROM node:18.16-alpine3.18 AS build
# Installing libvips-dev for sharp Compatability
RUN apk update && apk add build-base gcc autoconf automake zlib-dev libpng-dev vips-dev && rm -rf /var/cache/apk/* > /dev/null 2>&1
RUN apk update && apk add build-base gcc autoconf automake zlib-dev libpng-dev vips-dev git && rm -rf /var/cache/apk/* > /dev/null 2>&1
ARG NODE_ENV=production
ENV NODE_ENV=${NODE_ENV}
WORKDIR /opt/
Expand All @@ -14,7 +14,7 @@ COPY ./ .
RUN yarn build


FROM node:16-alpine
FROM node:18.16-alpine3.18
RUN apk add vips-dev
RUN rm -rf /var/cache/apk/*
ARG NODE_ENV=production
Expand Down

0 comments on commit a673438

Please sign in to comment.