mirror of
https://github.com/wahyd4/badger.git
synced 2026-08-09 05:15:58 +10:00
use npm run to run container
This commit is contained in:
+1
-1
@@ -103,7 +103,7 @@ spec:
|
||||
secretKeyRef: { name: github-credentials, key: clientSecret },
|
||||
}
|
||||
ports:
|
||||
- containerPort: 80
|
||||
- containerPort: 3000
|
||||
name: ui-port
|
||||
protocol: TCP
|
||||
resources:
|
||||
|
||||
+3
-7
@@ -7,11 +7,7 @@ COPY . /app
|
||||
|
||||
RUN apk update \
|
||||
&& apk add --no-cache git python alpine-sdk\
|
||||
&& npm ci \
|
||||
&& npm run generate
|
||||
&& npm install --production \
|
||||
&& npm run build
|
||||
|
||||
FROM nginx:alpine
|
||||
|
||||
COPY --from=build /app/dist /usr/share/nginx/html
|
||||
|
||||
EXPOSE 80
|
||||
CMD [ "npm", "start" ]
|
||||
|
||||
Reference in New Issue
Block a user