mirror of https://github.com/lissy93/dashy
⚗️ Experiement - Try get node-gyp working
This commit is contained in:
parent
22199394f2
commit
56d4b441bd
|
@ -6,13 +6,16 @@ ENV TARGETPLATFORM=${TARGETPLATFORM:-linux/amd64}
|
||||||
# Install additional tools needed on arm64 and armv7
|
# Install additional tools needed on arm64 and armv7
|
||||||
RUN \
|
RUN \
|
||||||
case "${TARGETPLATFORM}" in \
|
case "${TARGETPLATFORM}" in \
|
||||||
'linux/arm64') apk add --no-cache python make g++ ;; \
|
'linux/arm64') apk add --no-cache python make g++ ;; \
|
||||||
'linux/arm/v7') apk add --no-cache python make g++ ;; \
|
'linux/arm/v7') apk add --no-cache python make g++ ;; \
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Create and set the working directory
|
# Create and set the working directory
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Workaround for node-gyp
|
||||||
|
RUN apk add --update python make g++ && rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
COPY package.json yarn.lock ./
|
COPY package.json yarn.lock ./
|
||||||
RUN yarn install --frozen-lockfile --network-timeout 1000000
|
RUN yarn install --frozen-lockfile --network-timeout 1000000
|
||||||
|
|
||||||
|
@ -27,8 +30,8 @@ FROM node:14.17.5-alpine
|
||||||
|
|
||||||
# Define some ENV Vars
|
# Define some ENV Vars
|
||||||
ENV PORT=80 \
|
ENV PORT=80 \
|
||||||
DIRECTORY=/app \
|
DIRECTORY=/app \
|
||||||
IS_DOCKER=true
|
IS_DOCKER=true
|
||||||
|
|
||||||
# Create and set the working directory
|
# Create and set the working directory
|
||||||
WORKDIR ${DIRECTORY}
|
WORKDIR ${DIRECTORY}
|
||||||
|
|
Loading…
Reference in New Issue