Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Sharkey
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dima Krasner
Sharkey
Commits
eee57c47
Commit
eee57c47
authored
6 years ago
by
かひわし4(バージョン1)
Committed by
syuilo
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Use cache when default.yml update (#3042)
* Use cache when default.yml update * Install latest npm in base image
parent
3720a7fb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+13
-8
13 additions, 8 deletions
Dockerfile
with
13 additions
and
8 deletions
Dockerfile
+
13
−
8
View file @
eee57c47
...
...
@@ -3,8 +3,9 @@ FROM alpine:3.8 AS base
ENV
NODE_ENV=production
RUN
apk add
--no-cache
nodejs nodejs-npm zlib
RUN
npm i
-g
npm@latest
WORKDIR
/misskey
COPY
. ./
FROM
base
AS
builder
...
...
@@ -21,19 +22,23 @@ RUN apk add --no-cache \
pkgconfig
\
libtool
\
zlib-dev
RUN
npm i
-g
npm@latest
\
&&
npm i
\
&&
npm i
-g
node-gyp
\
&&
node-gyp configure
\
RUN
npm i
-g
node-gyp
COPY
./package.json ./
RUN
npm i
COPY
. ./
RUN
node-gyp configure
\
&&
node-gyp build
\
&&
npm run build
FROM
base
AS
runner
COPY
--from=builder /misskey/built ./built
COPY
--from=builder /misskey/node_modules ./node_modules
RUN
apk add
--no-cache
tini
ENTRYPOINT
["/sbin/tini", "--"]
COPY
--from=builder /misskey/node_modules ./node_modules
COPY
--from=builder /misskey/built ./built
COPY
. ./
CMD
["npm", "start"]
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