mirror of
https://github.com/Forceu/Gokapi.git
synced 2026-02-16 21:48:38 -06:00
* Added WASM module for e2e * Added cmd util to read database * Changed to go 1.19 * Fixed crash with random string generator * Fixed typos and tests * Host service worker on github
21 lines
455 B
Docker
21 lines
455 B
Docker
FROM golang:1.19
|
|
|
|
## To compile:
|
|
## cd Gokapi/build/
|
|
## docker build . --tag gokapi-builder
|
|
## docker run --rm -it -v ../:/usr/src/myapp -w /usr/src/myapp gokapi-builder
|
|
|
|
RUN \
|
|
apt-get update && \
|
|
apt-get install -y ca-certificates openssl zip && \
|
|
update-ca-certificates && \
|
|
rm -rf /var/lib/apt
|
|
|
|
COPY go.mod /tmp/tmp/go.mod
|
|
|
|
RUN cd /tmp/tmp/ && go mod download && rm -r /tmp/tmp
|
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|