I hereby claim:
- I am juacompe on github.
- I am juacompe (https://keybase.io/juacompe) on keybase.
- I have a public key ASC6VsOfu8Vi_pGtqojsYuhppu9jPXD-4v0BLPnw5wFHrwo
To claim this, I am signing this object:
version: '2' | |
services: | |
base: | |
image: node:11 | |
volumes: | |
- .:/usr/src/service/ | |
working_dir: /usr/src/service/ | |
install: | |
extends: | |
service: base |
Dockerfile | |
.dockerignore | |
.git/ |
FROM maven:slim | |
# copy pom file | |
COPY ./pom.xml ./ | |
# download all dependency libraries | |
RUN mvn dependency:go-offline -B | |
# copy the rest of the code | |
COPY ./ ./ | |
# build package | |
RUN mvn install | |
CMD mvn spring-boot:run |
FROM maven:slim as build-stage | |
COPY ./ ./ | |
RUN mvn install | |
CMD mvn spring-boot:run |
package main | |
import ( | |
"fmt" | |
"io" | |
"io/ioutil" | |
"net/http" | |
"net/http/httputil" | |
) |
func main() { | |
url := "https://jsonplaceholder.typicode.com/posts/1" | |
req, _ := http.NewRequest("GET", url, nil) | |
req.Header.Add("cache-control", "no-cache") | |
for i := 0; i < 2; i++ { | |
tr := &http.Transport{} |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object: