Skip to content

Instantly share code, notes, and snippets.

@diegorribeiro
Last active February 19, 2025 18:43
Show Gist options
  • Save diegorribeiro/931d73840b916f319bc78e79adb13a97 to your computer and use it in GitHub Desktop.
Save diegorribeiro/931d73840b916f319bc78e79adb13a97 to your computer and use it in GitHub Desktop.
Docker build on oci Oracle Cloud
# React JS / npm run build
## docker build image with build folder and push to oci cloud
docker buildx build --platform linux/amd64,linux/arm64 -t [YOURSERVERLOCATION].ocir.io/[YOURNAMESPACE]/[CONTAINER_NAME]:v[VERSION] --push .
# Node JS with npm run build -> tsc / tsconfig.json
## docker build image with dist folder and push to oci cloud
docker buildx build --platform linux/amd64,linux/arm64 -t [YOURSERVERLOCATION].ocir.io/[YOURNAMESPACE]/[CONTAINER_NAME]:v[VERSION] --push .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment