Skip to content

Commit bd7be75

Browse files
authored
chore: fixing Linguist and updating Dockerfile (#56)
1 parent d6245ca commit bd7be75

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.gitattributes

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# ignore generated protbuf files
2+
api/**/*.ts linguist-generated
3+
api/**/*.js linguist-generated
4+
api/**/*.go linguist-generated
5+
# ignore documentation
6+
docs/** linguist-documentation

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
ARG GO_VERSION=1.23.2
1+
ARG GO_VERSION=1.23
22
ARG ALPINE_VERSION=3.18
33

44
# Build web client (if needed)
55
FROM node:18 AS web-client-builder
66
WORKDIR /web
7-
RUN npm i -D @swc/cli @swc/core
8-
RUN rm package*.json
97

108
ARG DOMAIN
119
ARG SERVICE
@@ -16,6 +14,7 @@ RUN npm install
1614

1715
# Build dist
1816
COPY ./services/${DOMAIN}/${SERVICE}/web-client .
17+
ENV NODE_ENV=production
1918
RUN npm run build
2019

2120
# Make sure dist directory exists even if there's no client to build

0 commit comments

Comments
 (0)