Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
power-node
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Odysseus
power-node
Commits
89dae40a
Commit
89dae40a
authored
Mar 13, 2024
by
duanjinfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add test dockerfile
parent
3a993422
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
0 deletions
+44
-0
DockerfileTest
DockerfileTest
+44
-0
No files found.
DockerfileTest
0 → 100644
View file @
89dae40a
FROM golang:1.20-alpine AS build
# Install dependencies
RUN apk update && \
apk upgrade && \
apk add --no-cache bash git openssh make build-base
RUN go env -w CGO_ENABLED="1"
WORKDIR /build
RUN git clone -b test https://code.wuban.net.cn/odysseus/power-node && \
git clone https://code.wuban.net.cn/odysseus/odysseus-protocol
RUN cd /build/power-node
WORKDIR /build/power-node
RUN sh build.sh && cp /build/power-node/powerNode /powerNode
RUN cp config.json /config.json && mkdir /conf && cp conf/app.conf /conf/app.conf
RUN cp start.sh /start.sh
FROM alpine
WORKDIR /root
COPY --from=build /start.sh /root/start.sh
COPY --from=build /powerNode /usr/bin/powerNode
COPY --from=build /config.json /root/config.json
COPY --from=build /conf /root/conf
RUN apk add --update curl
# Expose the port that the application listens on
EXPOSE 9090
RUN chmod +x /root/start.sh
CMD [ "/bin/sh","/root/start.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