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

Fix docker image building on macOS #1609

Merged
merged 2 commits into from
Aug 3, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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