Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Commit

Permalink
Fix docker image building on macOS (#1609)
Browse files Browse the repository at this point in the history
  • Loading branch information
krysal authored Aug 3, 2022
1 parent 382115d commit 28a6c43
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions Dockerfile
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

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 28a6c43

Please sign in to comment.