fix: Docker compatibility
This commit is contained in:
parent
3cfdde809a
commit
461a989bb2
|
|
@ -13,7 +13,6 @@ COPY . .
|
||||||
# Build React app
|
# Build React app
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
|
|
||||||
# ---------- Production stage ----------
|
# ---------- Production stage ----------
|
||||||
FROM nginx:alpine
|
FROM nginx:alpine
|
||||||
|
|
||||||
|
|
@ -26,6 +25,7 @@ COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
# Copy build output
|
# Copy build output
|
||||||
COPY --from=build /app/dist /usr/share/nginx/html
|
COPY --from=build /app/dist /usr/share/nginx/html
|
||||||
|
|
||||||
EXPOSE 3000
|
# Expose standard nginx port
|
||||||
|
EXPOSE 80
|
||||||
|
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
CMD ["nginx", "-g", "daemon off;"]
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
server {
|
server {
|
||||||
listen 3000;
|
listen 80;
|
||||||
server_name _;
|
server_name _;
|
||||||
|
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue