mirror of
https://github.com/TeamPiped/instances-api.git
synced 2024-08-14 23:57:19 +00:00
Add initial code.
This commit is contained in:
parent
e11ba0388b
commit
8feaabb042
8 changed files with 256 additions and 1 deletions
24
Dockerfile
Normal file
24
Dockerfile
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
FROM golang:latest AS build
|
||||
|
||||
WORKDIR /app/
|
||||
|
||||
COPY go.mod go.sum ./
|
||||
|
||||
RUN go mod download
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN go build -ldflags "-s -w" main.go
|
||||
|
||||
FROM debian:unstable-slim
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /app/
|
||||
|
||||
COPY --from=build /app/main /app/instances-api
|
||||
|
||||
EXPOSE 3000
|
||||
CMD ./instances-api
|
||||
Loading…
Add table
Add a link
Reference in a new issue