Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
broadcast_cloud
/
web-live
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
2
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
df11c457
authored
Sep 15, 2020
by
王含泽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feature
1. 更新 pDockerfile
parent
2c17e354
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
11 deletions
+4
-11
pDockerfile
+4
-11
No files found.
pDockerfile
View file @
df11c457
...
...
@@ -5,21 +5,14 @@ COPY package.json yarn.lock ./
RUN yarn install --registry=https://registry.yarnpkg.com
FROM registry.cn-hangzhou.aliyuncs.com/open_images/node12.13.1-pm2
ADD ./ /var/www/web_live
ENV HOST 0.0.0.0
ENV TZ Asia/Shanghai
WORKDIR /var/www/web_live
COPY --from=builder /usr/src/app/package.json ./package.json
COPY --from=builder /usr/src/app/node_modules ./node_modules
COPY --from=builder /usr/src/app/config ./config
COPY --from=builder /usr/src/app/nuxt-dist ./nuxt-dist
COPY --from=builder /usr/src/app/serverMiddleware ./serverMiddleware
COPY --from=builder /usr/src/app/static ./static
COPY --from=builder /usr/src/app/.dockerignore ./.dockerignore
COPY --from=builder /usr/src/app/pDockerfile ./pDockerfile
COPY --from=builder /usr/src/app/nuxt.config.js ./nuxt.config.js
COPY --from=builder /usr/src/app/pm2.json ./pm2.json
COPY --from=builder /usr/src/app/pStart.sh ./pStart.sh
COPY --from=builder /home/app/package.json ./package.json
COPY --from=builder /home/app/node_modules ./node_modules
RUN yarn build:private
RUN rm -rf assets components layouts middleware pages plugins store .eslintrc.js .gitignore build.yml Dockerfile README.md start.sh
EXPOSE 3000
RUN chmod +x pStart.sh
ENTRYPOINT ["./pStart.sh"]
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