You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
okapidemo/Dockerfile.his

44 lines
586 B

# syntax=docker/dockerfile:1
##
## Build
##
FROM golang:1.19-alpine AS build
RUN apk update
RUN apk upgrade
RUN apk add build-base git
RUN apk add --update npm
WORKDIR /app
COPY ./ ./
RUN go mod tidy
RUN mkdir bin
WORKDIR /app/his
RUN go build -o /app/bin/his
WORKDIR /app/his/app
RUN npm i
RUN npx webpack
##
## Deploy
##
FROM alpine
WORKDIR /
COPY ./his/templates /templates
COPY ./his/patients /patients
COPY --from=build /app/bin/his ./his
COPY --from=build /app/his/assets ./assets
EXPOSE 8083
EXPOSE 8084
# > "logs/$(date +'%Y%m%d_%H%M').log" 2>&1
ENTRYPOINT ["/his"]