update docker files

This commit is contained in:
einhornimmond 2021-09-17 20:33:58 +02:00
parent bde7b28571
commit bd83cb4a76
2 changed files with 5 additions and 8 deletions

View File

@ -1,4 +1,4 @@
FROM nginx:latest
FROM nginx:1.21.0
WORKDIR /var/www/cakephp

View File

@ -1,21 +1,18 @@
#########################################################################################################
# Build skeema
#########################################################################################################
FROM golang:1.14.4 as skeema_build
FROM golang:1.17.1 as skeema_build
RUN go get -d -v github.com/skeema/skeema
WORKDIR /go/src/github.com/skeema/skeema
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o /go/bin/skeema .
RUN go install github.com/skeema/skeema@v1.5.3
#########################################################################################################
# Run skeema
#########################################################################################################
FROM alpine:3.13.5 as skeema_run
FROM skeema_build as skeema_run
ENV DOCKER_WORKDIR="/skeema"
# copy skeema
COPY --from=skeema_build /go/bin/skeema /usr/bin/
RUN mkdir -p ${DOCKER_WORKDIR}
WORKDIR ${DOCKER_WORKDIR}