Revert "Merge pull request #1917 from SkynetLabs/use-accounts-image"

This reverts commit f3ec613a5a, reversing
changes made to 25d573b9ba.
This commit is contained in:
Karol Wypchlo 2022-04-22 17:33:26 +02:00
parent 5d33b79f69
commit 446049986c
No known key found for this signature in database
GPG Key ID: B515DE9EEBE241E1
2 changed files with 27 additions and 3 deletions

View File

@ -20,9 +20,11 @@ services:
- ACCOUNTS_LIMIT_ACCESS=${ACCOUNTS_LIMIT_ACCESS:-authenticated} # default to authenticated access only - ACCOUNTS_LIMIT_ACCESS=${ACCOUNTS_LIMIT_ACCESS:-authenticated} # default to authenticated access only
accounts: accounts:
# uncomment "build" and comment out "image" to build from sources build:
# build: https://github.com/SkynetLabs/skynet-accounts.git#main context: ./docker/accounts
image: skynetlabs/skynet-accounts dockerfile: Dockerfile
args:
branch: main
container_name: accounts container_name: accounts
restart: unless-stopped restart: unless-stopped
logging: *default-logging logging: *default-logging

View File

@ -0,0 +1,22 @@
FROM golang:1.16.7
LABEL maintainer="SkynetLabs <devs@siasky.net>"
ENV GOOS linux
ENV GOARCH amd64
ARG branch=main
WORKDIR /root
RUN git clone --single-branch --branch ${branch} https://github.com/SkynetLabs/skynet-accounts.git && \
cd skynet-accounts && \
go mod download && \
make release
ENV SKYNET_DB_HOST="localhost"
ENV SKYNET_DB_PORT="27017"
ENV SKYNET_DB_USER="username"
ENV SKYNET_DB_PASS="password"
ENV SKYNET_ACCOUNTS_PORT=3000
ENTRYPOINT ["skynet-accounts"]