diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..2541746 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,6 @@ +# docker volume for postgres +data/ + +# webapp local development artifacts +webapp/node_modules/ +webapp/build/ diff --git a/Dockerfile b/Dockerfile index 98bff78..686c7c8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ -FROM golang:alpine +FROM golang:1.15-alpine WORKDIR /src RUN apk add --update npm git RUN go get -u github.com/jteeuwen/go-bindata/... -COPY ./webapp/package.json webapp/package.json +COPY ./webapp/package.json ./webapp/package-lock.json webapp/ RUN cd ./webapp && \ npm install COPY . .