Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Nos Hs2023
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Språksamlingane
stadnamn
Nos Hs2023
Commits
786f06d1
Commit
786f06d1
authored
6 years ago
by
Esko Ikkala
Browse files
Options
Downloads
Patches
Plain Diff
Dockerize
parent
ccc18d31
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
+2
-0
2 additions, 0 deletions
.dockerignore
Dockerfile
+23
-0
23 additions, 0 deletions
Dockerfile
README.md
+15
-0
15 additions, 0 deletions
README.md
with
40 additions
and
0 deletions
.dockerignore
0 → 100644
+
2
−
0
View file @
786f06d1
node_modules
npm-debug.log
This diff is collapsed.
Click to expand it.
Dockerfile
0 → 100644
+
23
−
0
View file @
786f06d1
FROM
node:10.4-alpine
RUN
mkdir
/opt/hipla-full-stack
&&
chown
node:node /opt/hipla-full-stack
# Create app directory
WORKDIR
/opt/hipla-full-stack
USER
node
# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
COPY
package*.json ./
COPY
webpack*.js ./
# Bundle app source
COPY
src ./src
RUN
npm
install
&&
npm run build
EXPOSE
3001
CMD
["node", "dist/server"]
This diff is collapsed.
Click to expand it.
README.md
0 → 100644
+
15
−
0
View file @
786f06d1
# Hipla.fi
## Build
`docker build -t hipla-full-stack .`
## Run
`docker run -d -p 3005:3001 --name hipla hipla-full-stack`
## Upgrade
```
docker build -t hipla-full-stack .
docker stop hipla
docker rm hipla
docker run -d -p 3005:3001 --name hipla hipla-full-stack
```
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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