fixed build dockerfile

This commit is contained in:
Lorenzo Venerandi 2024-12-13 13:14:18 +01:00
parent 4f47194d8d
commit ac9a119eb5

View File

@ -47,8 +47,6 @@ FROM wash-build-image
RUN mkdir /app RUN mkdir /app
WORKDIR /app WORKDIR /app
USER ubuntu
# Install go dependencies, build the wasm module, push it to the registry # Install go dependencies, build the wasm module, push it to the registry
#CMD ["sh", "-c", "go mod download && go mod verify && go mod tidy && wash build && wash push $REGISTRY build/*_s.wasm"] #CMD ["sh", "-c", "go mod download && go mod verify && go mod tidy && wash build && wash push $REGISTRY build/*_s.wasm"]
CMD ["sh", "-c", "go mod download && go mod verify && go mod tidy && chmod -R u+rw /app && sleep 2 && wash build && wash push $REGISTRY build/*_s.wasm"] CMD ["sh", "-c", "go env -w GOFLAGS=-buildvcs=false && go mod download && go mod verify && wash build && wash push $REGISTRY build/*_s.wasm"]