Skip to content

Commit

Permalink
Merge pull request #14 from linjie7674/bugfix/cicd_deploy
Browse files Browse the repository at this point in the history
Bugfix/cicd deploy
  • Loading branch information
IRONICBo committed Jan 22, 2024
2 parents ed920ab + 3ca283a commit 0384a02
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.21.6
FROM golang:1.19

RUN apt-get update

Expand All @@ -7,9 +7,9 @@ WORKDIR /community
# install goplus
RUN cd .. && git clone https://github.com/goplus/gop.git && cd gop && ./all.bash

# install npm
RUN apt-get install npm -y

# run goplus-community
COPY . .
CMD cd cmd/gopcomm && gop run .

# download account repository
RUN cd .. && git clone https://github.com/IRONICBo/account.git
CMD bash scripts/start.sh
5 changes: 5 additions & 0 deletions scripts/start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# run commnuity
cd cmd/gopcomm && cp /config/.community-env .env && go mod tidy && gop run . &

# run account
cd ../account/cmd && cp /config/.account-env .env && go mod tidy && gop run .

0 comments on commit 0384a02

Please sign in to comment.