Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-arena-api
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
ygopro-arena-api
Commits
5fa006c7
Commit
5fa006c7
authored
Nov 11, 2016
by
GanJc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dockerfile
parent
440af7bd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
0 deletions
+37
-0
Dockerfile
Dockerfile
+8
-0
Dockerfile_min
Dockerfile_min
+29
-0
No files found.
Dockerfile
0 → 100644
View file @
5fa006c7
FROM
node
RUN
mkdir
-p
/usr/src/app
WORKDIR
/usr/src/app
COPY
package.json /usr/src/app/
#RUN npm install
COPY
. /usr/src/app
EXPOSE
3000
CMD
[ "npm", "start" ]
\ No newline at end of file
Dockerfile_min
0 → 100644
View file @
5fa006c7
# Dockerfile.alpine
FROM
alpine:edge
# Install node.js by apk
RUN
echo
'@edge http://nl.alpinelinux.org/alpine/edge/main'
>>
/etc/apk/repositories
RUN
apk update
&&
apk upgrade
RUN
apk add
--no-cache
nodejs-lts@edge
# If you have native dependencies, you'll need extra tools
# RUN apk add --no-cache make gcc g++ python
# Create app directory
RUN
mkdir
-p
/usr/src/app
WORKDIR
/usr/src/app
# If your project depends on many package, you can use cnpm instead of npm
# RUN npm install cnpm -g --registry=https://registry.npm.taobao.org
# RUN cnpm install
# Install app dependencies
COPY
package.json /usr/src/app/
RUN
npm
install
# Bundle app source
COPY
. /usr/src/app
# Expose port
EXPOSE
3000
CMD
[ "npm", "start" ]
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment