This commit is contained in:
parent
bf1881ccb5
commit
5f54220113
3 changed files with 61 additions and 2 deletions
32
Dockerfile
Normal file
32
Dockerfile
Normal file
|
@ -0,0 +1,32 @@
|
|||
FROM alpine:latest AS compile
|
||||
|
||||
RUN mkdir /build
|
||||
|
||||
WORKDIR /build
|
||||
|
||||
# Add edge repository
|
||||
RUN echo -e "\nhttps://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
|
||||
|
||||
RUN apk update && \
|
||||
apk add pnpm nodejs npm nim nimble go-task git build-base
|
||||
|
||||
ADD . .
|
||||
|
||||
RUN go-task docker-build-frontend
|
||||
RUN go-task docker-build-backend
|
||||
|
||||
RUN echo $(pwd) $(ls)
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apk update && \
|
||||
apk add sqlite-dev
|
||||
|
||||
COPY --from=compile /build/gw /app/
|
||||
COPY --from=compile /build/public /app/public
|
||||
|
||||
CMD ["/app/gw"]
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue