mirror of
https://github.com/wahyd4/badger.git
synced 2026-08-09 05:15:58 +10:00
Try to use node to serve website
This commit is contained in:
+1
-1
@@ -125,7 +125,7 @@ metadata:
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 80
|
||||
- port: 3000
|
||||
targetPort: ui-port
|
||||
protocol: TCP
|
||||
name: ui
|
||||
|
||||
+5
-2
@@ -8,10 +8,13 @@ COPY . /app
|
||||
RUN apk update \
|
||||
&& apk add --no-cache git python alpine-sdk\
|
||||
&& npm ci \
|
||||
&& npm run build \
|
||||
&& npm run generate
|
||||
|
||||
FROM nginx:alpine
|
||||
# FROM nginx:alpine
|
||||
|
||||
COPY --from=build /app/dist /usr/share/nginx/html
|
||||
# COPY --from=build /app/dist /usr/share/nginx/html
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD [ "npm", "run", "start" ]
|
||||
|
||||
Reference in New Issue
Block a user