Use paulcager/osgridref to translate

This commit is contained in:
Paul Cager
2020-12-13 23:25:17 +00:00
parent c5c04d7942
commit 814928e1b8
9 changed files with 172 additions and 494 deletions
+10 -8
View File
@@ -1,9 +1,11 @@
FROM node:12.15.0
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm --version && node --version
RUN npm install
COPY . .
EXPOSE 9090
CMD ["node", "-r", "esm", "index.js" ]
FROM paulcager/go-base:latest
EXPOSE 9090
WORKDIR /go/src/osgrid-server
COPY go.mod *.go ./
RUN go install -v ./... && sha256sum /go/bin/osgrid-server
CMD [ "/go/bin/osgrid-server" ]