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
fe628df8
Commit
fe628df8
authored
Mar 13, 2024
by
duanjinfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update docker file test
parent
cce927bb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
45 deletions
+1
-45
Dockerfile
Dockerfile
+1
-1
DockerfileTest
DockerfileTest
+0
-44
No files found.
Dockerfile
View file @
fe628df8
...
...
@@ -9,7 +9,7 @@ RUN go env -w CGO_ENABLED="1"
WORKDIR
/build
RUN
git clone https://code.wuban.net.cn/odysseus/power-node
&&
\
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
...
...
DockerfileTest
deleted
100644 → 0
View file @
cce927bb
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