{"id":15382142,"url":"https://github.com/potato4d/docker-multi-stage-build-on-nuxt","last_synced_at":"2025-10-11T04:31:36.290Z","repository":{"id":37847134,"uuid":"204365575","full_name":"potato4d/docker-multi-stage-build-on-nuxt","owner":"potato4d","description":null,"archived":true,"fork":false,"pushed_at":"2023-03-04T04:35:25.000Z","size":321,"stargazers_count":20,"open_issues_count":6,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-16T21:46:05.190Z","etag":null,"topics":["docker","multistage-docker","nuxt","nuxtjs"],"latest_commit_sha":null,"homepage":"https://nuxt-meetup.connpass.com/event/135514/","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/potato4d.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-26T00:21:06.000Z","updated_at":"2024-09-16T14:42:17.000Z","dependencies_parsed_at":"2023-02-15T05:15:49.128Z","dependency_job_id":null,"html_url":"https://github.com/potato4d/docker-multi-stage-build-on-nuxt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/potato4d%2Fdocker-multi-stage-build-on-nuxt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/potato4d%2Fdocker-multi-stage-build-on-nuxt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/potato4d%2Fdocker-multi-stage-build-on-nuxt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/potato4d%2Fdocker-multi-stage-build-on-nuxt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/potato4d","download_url":"https://codeload.github.com/potato4d/docker-multi-stage-build-on-nuxt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236039355,"owners_count":19085377,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","multistage-docker","nuxt","nuxtjs"],"created_at":"2024-10-01T14:29:58.496Z","updated_at":"2025-10-11T04:31:30.964Z","avatar_url":"https://github.com/potato4d.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker multi stage build on Nuxt.js project\n\nThis is a sample for Nuxt Meetup (in Japan) of 2019/08/26.\n\n## Stack\n\n- Nuxt.js v2.9\n  - Universal Mode\n  - with TypeScript\n- Docker v19.x\n  - with docker-compose v3.x\n- CircleCI v2.x\n  - use machine image\n\n## Structure\n\nUsing Docker's multi stage build (available from 17.05), the development environment, build environment, and production environment can be shared with a single Dockerfile.\n\n```Dockerfile\n# For development\n\nFROM node:10.16.1-alpine as dev-env\nWORKDIR /app\nCOPY . /app\nRUN apk update\nRUN yarn\nEXPOSE 3000\nCMD [\"yarn\", \"dev\"]\n\n# For build\n\nFROM node:10.16.1-alpine as build-env\nWORKDIR /app\nCOPY . /app\nRUN apk update\nRUN yarn\nRUN yarn build\n\n# For production\nFROM node:10.16.1-alpine\n\nWORKDIR /app\nCOPY . /app\n\n# Copy from another build\nCOPY --from=build-env /app/.nuxt /app/.nuxt\nRUN yarn\nEXPOSE 3000\nCMD [\"yarn\", \"start\"]\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpotato4d%2Fdocker-multi-stage-build-on-nuxt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpotato4d%2Fdocker-multi-stage-build-on-nuxt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpotato4d%2Fdocker-multi-stage-build-on-nuxt/lists"}