Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Wiki
Manage
Activity
Members
Labels
Plan
Issues
53
Issue boards
Milestones
Wiki
Code
Merge requests
6
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MDM Lab
Wiki
Commits
9553f9b9
Commit
9553f9b9
authored
2 years ago
by
Remi PLANEL
Browse files
Options
Downloads
Patches
Plain Diff
Add dockerfile and docker compose
parent
5b3bdc5f
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.dockerignore
+4
-0
4 additions, 0 deletions
.dockerignore
Dockerfile
+34
-0
34 additions, 0 deletions
Dockerfile
docker-compose.yml
+15
-0
15 additions, 0 deletions
docker-compose.yml
with
53 additions
and
0 deletions
.dockerignore
0 → 100644
+
4
−
0
View file @
9553f9b9
**/node_modules
Dockerfile
.gitlab-ci.yaml
**/.nuxt
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Dockerfile
0 → 100644
+
34
−
0
View file @
9553f9b9
### Stage Install ###
FROM
node:19.5-bullseye-slim
as
install
RUN
mkdir
/usr/src/app
WORKDIR
/usr/src/app
ENV
PATH /usr/src/app/node_modules/.bin:$PATH
COPY
package*.json ./
RUN
npm
install
### STAGE: Dev
FROM
node:19.5-bullseye-slim
as
dev
WORKDIR
/usr/src/app
COPY
--from=install /usr/src/app ./
COPY
. /usr/src/app
EXPOSE
3000 24678 4000
CMD
["npm", "run", "dev"]
### STAGE: Build ###
FROM
node:19.5-bullseye-slim
as
build
WORKDIR
/usr/src/app
COPY
--from=install /usr/src/app ./
COPY
. /usr/src/app
RUN
npm run generate
### STAGE: NGINX ###
FROM
nginx:stable-alpine
COPY
--from=build /usr/src/app/dist /usr/share/nginx/html
EXPOSE
80
CMD
["nginx", "-g", "daemon off;"]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
docker-compose.yml
0 → 100644
+
15
−
0
View file @
9553f9b9
version
:
"
3.9"
services
:
nuxt
:
build
:
context
:
.
target
:
dev
container_name
:
docus_dev
volumes
:
-
.:/usr/src/app
-
/usr/src/app/node_modules
-
/usr/src/app/.nuxt
ports
:
-
"
3000:3000"
-
"
24678:24678"
-
"
4000:4000"
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment