-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
attempting to fix github actions errors
- Loading branch information
1 parent
f6373b2
commit b982ed9
Showing
6 changed files
with
42 additions
and
24 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.github | ||
.husky | ||
.next | ||
.swc | ||
node_modules | ||
|
||
Dockerfile* | ||
.dockerignore |
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
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
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,15 +1,10 @@ | ||
FROM golang:1.22-alpine AS builder | ||
FROM node:18-alpine | ||
|
||
WORKDIR /build | ||
COPY go.mod . | ||
RUN go mod download | ||
# TODO: Optimize COPY command so that only necessary files are copied | ||
WORKDIR /app | ||
COPY package*.json . | ||
RUN npm ci | ||
COPY . . | ||
RUN go build -o ./output/bin | ||
|
||
FROM gcr.io/distroless/base-debian12 | ||
RUN npm run build | ||
|
||
WORKDIR /app | ||
COPY --from=builder /build/output/ . | ||
EXPOSE 3001 | ||
CMD ["/app/bin"] | ||
EXPOSE 3000 | ||
CMD ["npm", "start"] |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM golang:1.22-alpine AS builder | ||
|
||
WORKDIR /build | ||
COPY go.mod . | ||
RUN go mod download | ||
# TODO: Optimize COPY command so that only necessary files are copied | ||
COPY . . | ||
RUN go build -o ./output/bin | ||
|
||
FROM gcr.io/distroless/base-debian12 | ||
|
||
WORKDIR /app | ||
COPY --from=builder /build/output/ . | ||
EXPOSE 3001 | ||
CMD ["/app/bin"] |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
services: | ||
nexp-app: | ||
build: ./Dockerfile | ||
ports: | ||
- '3000:3000' | ||
|
||
dev-api: | ||
build: ./Dockerfile.api.dev | ||
ports: | ||
- '3001:3001' |