-
Notifications
You must be signed in to change notification settings - Fork 377
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dda1a05
commit fc0e5eb
Showing
5 changed files
with
71 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,4 +28,4 @@ FROM go AS final | |
|
||
COPY app /app | ||
|
||
RUN echo hello | ||
RUN echo hello |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,4 +29,4 @@ FROM go AS final | |
|
||
COPY app /app | ||
|
||
RUN echo hello | ||
RUN echo hello |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,31 @@ | ||
FROM mcr.microsoft.com/devcontainers/javascript-node | ||
FROM mcr.microsoft.com/devcontainers/go:1.22-bullseye AS go | ||
|
||
ARG TARGETOS | ||
ARG TARGETARCH | ||
|
||
# Install Node.js | ||
RUN \ | ||
curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \ | ||
&& apt-get update \ | ||
&& apt-get install -y --no-install-recommends nodejs \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Set environment variables for Rust | ||
ENV RUSTUP_HOME=/usr/local/rustup \ | ||
CARGO_HOME=/usr/local/cargo \ | ||
PATH=/usr/local/cargo/bin:$PATH \ | ||
RUST_VERSION=1.69.0 | ||
|
||
# Install Protobuf compiler | ||
RUN \ | ||
apt-get update \ | ||
&& apt-get install -y --no-install-recommends protobuf-compiler \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
FROM go AS final | ||
|
||
COPY app /app | ||
|
||
RUN echo hello |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters