File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 11FROM oven/bun:1
2+ WORKDIR /usr/src/app
23
34# setup labels
45LABEL repository="https://github.com/kitabisa/smockr"
@@ -19,9 +20,9 @@ ENV ALLOWED_METHODS=$ALLOWED_METHODS
1920ENV ALLOWED_HEADERS=$ALLOWED_HEADERS
2021
2122# copy binary
22- COPY bin .
23+ COPY ./ bin /usr/src/app/
2324
2425# run the app
2526USER bun
2627EXPOSE 8080/tcp
27- ENTRYPOINT [ "bun" , "run" , "bin/ server.js" ]
28+ ENTRYPOINT [ "bun" , "run" , "server.js" ]
Original file line number Diff line number Diff line change @@ -96,11 +96,11 @@ kitabisa/smockr
9696Running mock with custom params
9797
9898```
99- $ docker run -p 3000:8080 --rm -e \
100- SECRET_KEY="mysecret" \
101- ALLOWED_ORIGIN="*.kitabisa.com,*.kitajaga.id" \
102- ALLOWED_METHODS="GET,POST,PATCH" \
103- ALLOWED_HEADERS="Content-Type,Authorization" \
99+ $ docker run -p 3000:8080 --rm \
100+ -e SECRET_KEY="mysecret" \
101+ -e ALLOWED_ORIGIN="*.kitabisa.com,*.kitajaga.id" \
102+ -e ALLOWED_METHODS="GET,POST,PATCH" \
103+ -e ALLOWED_HEADERS="Content-Type,Authorization" \
104104kitabisa/smockr
105105```
106106
You can’t perform that action at this time.
0 commit comments