This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix docker image building on macOS (#1609)
- Loading branch information
Showing
1 changed file
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
FROM node:16-alpine | ||
FROM node:16-alpine as builder | ||
|
||
RUN npm install -g pnpm [email protected] | ||
RUN apk add --no-cache --virtual .gyp python3 make g++ \ | ||
&& npm install -g pnpm [email protected] | ||
|
||
USER node | ||
|
||
|
@@ -31,6 +32,20 @@ RUN pnpm build:only | |
|
||
COPY ecosystem.config.js /home/node/app/ecosystem.config.js | ||
|
||
################### | ||
# Nuxt app | ||
################### | ||
|
||
FROM node:alpine as app | ||
|
||
WORKDIR /home/node/app | ||
|
||
RUN npm install -g [email protected] | ||
|
||
USER node | ||
|
||
COPY --from=builder --chown=node:node /home/node/app . | ||
|
||
# set app serving to permissive / assigned | ||
ENV NUXT_HOST=0.0.0.0 | ||
|
||
|