-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathDockerfile
More file actions
20 lines (20 loc) · 653 Bytes
/
Dockerfile
File metadata and controls
20 lines (20 loc) · 653 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM golang:latest AS builder
RUN apt-get update
RUN apt-get install -y git
RUN curl -sL https://deb.nodesource.com/setup_13.x | bash -
RUN apt-get update && apt-get install -y nodejs
ENV GO111MODULE=on \
CGO_ENABLED=0 \
GOOS=linux \
GOARCH=amd64
WORKDIR /build
COPY . .
RUN go build -o /bin/iris-cli .
WORKDIR /bin
RUN chmod +x ./iris-cli
WORKDIR /myproject
# docker image rm -f iris-cli;docker build . -t iris-cli; docker run -i -t -p 8080:8080 -v "C:\Users\kataras\Desktop\myproject:/myproject" iris-cli run svelte
ENTRYPOINT ["iris-cli"]
# FROM scratch
# COPY --from=builder /bin/iris-cli /
# ENTRYPOINT ["/iris-cli"]