Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
FROM mhart/alpine-node:12.9.1
RUN npm i -g pkg
RUN which pkg
COPY package*.json /app/
RUN cd /app; npm ci \
&& npm run build \
&& /usr/bin/pkg -t node12-linux --output .dist .
COPY . /app
FROM alpine:3.9
WORKDIR /app
ENV HOST 0.0.0.0
COPY --from=0 ./app/.dist ./
RUN ls -la
EXPOSE 3000
CMD ["./dist/alpine-pkg-nuxt-linux"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.