Last active
December 22, 2019 08:16
-
-
Save daliborgogic/b6d9d487420ed1c2ad8b427965a50081 to your computer and use it in GitHub Desktop.
Mnml Nuxt.js Docker ~57.5MB
This file contains hidden or 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
* | |
!assets | |
!pages | |
!static | |
!nuxt.config.js | |
!package*.json |
This file contains hidden or 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
FROM mhart/alpine-node:10.10.0 | |
WORKDIR /app | |
COPY . . | |
RUN npm ci | |
RUN npm run build | |
# Magic! | |
RUN npm ci nuxt-start-edge debug --production | |
FROM mhart/alpine-node:base-10.10.0 | |
WORKDIR /app | |
ENV NODE_ENV production | |
ENV HOST 0.0.0.0 | |
ENV PORT 3000 | |
COPY package.json . | |
COPY nuxt.config.js . | |
COPY --from=0 ./app/node_modules ./node_modules | |
COPY --from=0 ./app/.nuxt ./.nuxt | |
COPY --from=0 ./app/static ./static | |
EXPOSE 3000 | |
CMD ["node_modules/nuxt-start-edge/bin/nuxt-start"] |
This file contains hidden or 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
{ | |
"name": "mnml", | |
"version": "1.0.0", | |
"description": "Mnml Nuxt.js Docker", | |
"scripts": { | |
"dev": "node_modules/.bin/nuxt", | |
"build": "node_modules/.bin/nuxt build", | |
"start": "node_modules/nuxt-start-edge/bin/nuxt-start" | |
}, | |
"dependencies": { | |
"debug": "^4.0.1", | |
"nuxt-start-edge": "^2.0.0-25615151.226b90d" | |
}, | |
"devDependencies": { | |
"nuxt-edge": "^2.0.0-25615151.226b90d", | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dockerfile
package.json