We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dc8729 commit f4310cfCopy full SHA for f4310cf
Dockerfile
@@ -0,0 +1,12 @@
1
+FROM node:22 AS builder
2
+WORKDIR /app
3
+COPY package*.json ./
4
+RUN npm install
5
+COPY . .
6
+RUN npm run build
7
+
8
+FROM nginx:alpine
9
+COPY --from=builder /app/dist /usr/share/nginx/html
10
+COPY nginx.conf /etc/nginx/conf.d/default.conf
11
+EXPOSE 8080
12
+CMD ["nginx", "-g", "daemon off;"]
nginx.conf
@@ -0,0 +1,11 @@
+server {
+ listen 8080;
+ root /usr/share/nginx/html;
+ index index.html;
+ location / {
+ try_files $uri /index.html;
+ }
+ location /api/ {
+ proxy_pass http://command-tracker-staging.ap-northeast-2.elasticbeanstalk.com;
+}
0 commit comments