fix: update docker file

This commit is contained in:
Lakhan Samani
2021-07-27 17:46:02 +05:30
parent 30f83aaf82
commit 0fd4f18dc1
5 changed files with 20 additions and 10 deletions

View File

@@ -1,10 +1,11 @@
FROM golang:1.16-alpine as builder
WORKDIR /app
COPY . .
RUN apk add build-base && cd server && go mod download && go build && chmod 777 server && ls -l
RUN apk add build-base &&\
cd server && \
go mod download && \
go build && \
chmod 777 server
FROM alpine:latest
RUN apk --no-cache add ca-certificates