Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
activities
/
web-lottery
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
df219557
authored
Dec 20, 2022
by
Lays-lzq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: dockerfile文件同步投票
parent
d9c21f58
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
cmDockerfile
+4
-10
No files found.
cmDockerfile
View file @
df219557
FROM alpine AS builder
FROM registry.cn-hangzhou.aliyuncs.com/cduan/customer-resource-base:zabbix
WORKDIR /home/app
RUN apk add --no-cache --update nodejs yarn
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_lottery
ADD ./ /var/www/web_lottery
ENV HOST 0.0.0.0
ENV HOST 0.0.0.0
ENV TZ Asia/Shanghai
ENV TZ Asia/Shanghai
WORKDIR /var/www/web_lottery
WORKDIR /var/www/web_lottery
COPY --from=builder /home/app/package.json ./package.json
RUN yarn install
COPY --from=builder /home/app/node_modules ./node_modules
RUN yarn build:cm
RUN yarn build:cm
RUN rm -rf assets components layouts middleware pages plugins store .eslintrc.js .gitignore build.yml Dockerfile README.md start.sh
RUN rm -rf assets components layouts middleware pages plugins store .eslintrc.js .gitignore build.yml Dockerfile README.md start.sh
EXPOSE 4002
EXPOSE 4002
RUN chmod +x cmStart.sh
RUN chmod +x cmStart.sh
ENTRYPOINT ["./cmStart.sh"]
ENTRYPOINT ["./cmStart.sh"]
\ 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