forked from pneymrl2f/nightingale
commit
0951f1f1af
@ -1,22 +1,11 @@
|
|||||||
FROM golang AS builder
|
FROM golang:1.13
|
||||||
# RUN apk add --no-cache git gcc
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
COPY . .
|
|
||||||
RUN ./control build docker
|
|
||||||
|
|
||||||
FROM buildpack-deps:buster-curl
|
LABEL maintainer="llitfkitfk@gmail.com,chenjiandongx@qq.com"
|
||||||
LABEL maintainer="llitfkitfk@gmail.com"
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY --from=builder /app/docker/scripts /app/scripts
|
RUN apt-get update && apt-get install net-tools -y
|
||||||
COPY --from=builder /app/etc /app/etc
|
|
||||||
# Change default address (hard code)
|
|
||||||
RUN ./scripts/sed.sh
|
|
||||||
|
|
||||||
COPY --from=builder /app/bin /usr/local/bin
|
COPY . .
|
||||||
|
RUN ./control build docker
|
||||||
|
RUN mv /app/bin/* /usr/local/bin
|
||||||
# ENTRYPOINT []
|
|
||||||
# CMD []
|
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -xe
|
|
||||||
|
|
||||||
sed -i 's/127.0.0.1:6379/redis:6379/g' /app/etc/judge.yml
|
|
||||||
sed -i 's/127.0.0.1:6379/redis:6379/g' /app/etc/monapi.yml
|
|
||||||
sed -i 's/127.0.0.1:3306/mysql:3306/g' /app/etc/mysql.yml
|
|
||||||
sed -i 's/127.0.0.1:5821/tsdb:5821/g' /app/etc/transfer.yml
|
|
Loading…
Reference in new issue