forked from stefanprodan/podinfo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.dev
38 lines (31 loc) · 1.42 KB
/
Dockerfile.dev
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM golang
ARG BUILD_DATE
ARG VERSION
ARG REVISION
# define container level tags
LABEL version="1.0" maintainer="Yoan Yomba <yoanyombapro@gmail.com>"
LABEL author="Yoan Yomba"
LABEL company="FeelGuuds"
LABEL maintainer="FeelGuuds" \
org.opencontainers.image.created=$BUILD_DATE \
org.opencontainers.image.url="https://github.com/yoanyombapro1234/FeelguudsPlatform" \
org.opencontainers.image.source="https://github.com/yoanyombapro1234/FeelguudsPlatform" \
org.opencontainers.image.version=$VERSION \
org.opencontainers.image.revision=$REVISION \
org.opencontainers.image.vendor="FeelGuuds" \
org.opencontainers.image.title="FeelGuudsPlatform" \
org.opencontainers.image.description="Microservice For The FeelGuuds \
Platform" \
org.opencontainers.image.licenses="MIT"
# create a directory in which to copy files on local filesystem
RUN mkdir -p /go/src/github.com/yoanyombapro1234/FeelguudsPlatform
# copy files on local file system
ADD . /go/src/github.com/yoanyombapro1234/FeelguudsPlatform
# define execution context
WORKDIR /go/src/github.com/yoanyombapro1234/FeelguudsPlatform
# download package level dependencies
RUN go mod download
RUN go get github.com/canthefason/go-watcher
RUN go install github.com/canthefason/go-watcher/cmd/watcher
# define container entrypoint
ENTRYPOINT watcher -run /go/src/github.com/yoanyombapro1234/FeelguudsPlatform/cmd/feelguuds_platform -watch github.com/yoanyombapro1234/FeelguudsPlatform