Skip to content

Commit

Permalink
Add npm rebuild from source
Browse files Browse the repository at this point in the history
  • Loading branch information
Tricot, Guillaume committed Nov 9, 2022
1 parent 138b81f commit 36a0eae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ FROM node:18-alpine

LABEL maintainer="gtricot"

# Install system dependencies
# Add TZDATA to allow easy local time configuration
RUN apk update \
&& apk add --no-cache tzdata \
&& apk add --no-cache make gcc g++ python3 linux-headers udev tzdata \
&& rm -rf /var/cache/apk/*

# Set working directory
Expand All @@ -14,7 +15,7 @@ WORKDIR /app
COPY app/ ./

# Install node dependendencies
RUN npm ci --omit=dev
RUN npm ci --omit=dev && npm rebuild --build-from-source

# Default log format
ENV LOG_FORMAT=text
Expand Down

0 comments on commit 36a0eae

Please sign in to comment.