chore: remove usage of buf and rust in docker image

This commit is contained in:
Derrick Hammer 2024-03-30 14:00:37 -04:00
parent 8d98f131d5
commit 1b394f3ca1
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 0 additions and 10 deletions

View File

@ -1,5 +1,3 @@
# Use the bufbuild/buf image for extracting the buf command binary
FROM bufbuild/buf:latest as buf
# Use the official Node.js image as the base image for building the api/account/portal # Use the official Node.js image as the base image for building the api/account/portal
FROM node:20-alpine as nodejs-builder FROM node:20-alpine as nodejs-builder
@ -28,18 +26,10 @@ RUN apk add --no-cache git && git clone --recurse-submodules https://git.lumeweb
# Copy the built dashboard from the nodejs-builder stage # Copy the built dashboard from the nodejs-builder stage
COPY --from=nodejs-builder /portal/api/account/app/build/client /portal/api/account/app/build/client COPY --from=nodejs-builder /portal/api/account/app/build/client /portal/api/account/app/build/client
# Copy buf from the buf stage
COPY --from=buf /usr/local/bin/buf /usr/local/bin/buf
# Install the necessary dependencies # Install the necessary dependencies
RUN apk add bash gcc curl musl-dev RUN apk add bash gcc curl musl-dev
# Install the necessary dependencies
RUN curl -sSf https://sh.rustup.rs | bash -s -- -y
# Set the necessary environment variables
ENV PATH="/root/.cargo/bin:${PATH}"
## Build the Go application ## Build the Go application
RUN go mod download RUN go mod download