fix: docker build version arg

This commit is contained in:
Lakhan Samani
2021-10-10 00:28:44 +05:30
parent 8b510ed556
commit 17676fa13b
2 changed files with 5 additions and 2 deletions

View File

@@ -3,12 +3,13 @@ WORKDIR /app
COPY server server
COPY Makefile .
ARG VERSION=0.1.0-beta.0
ARG VERSION
ENV VERSION="${VERSION}"
RUN apk add build-base &&\
make clean && make && \
chmod 777 build/server
chmod 777 build/server && \
echo "$VERSION"
FROM alpine:latest
RUN apk --no-cache add ca-certificates