debug Dockerfile
This commit is contained in:
parent
43f25622ea
commit
b2d14f8570
17
Dockerfile
17
Dockerfile
|
@ -1,17 +1,18 @@
|
||||||
FROM node:20-bullseye AS build
|
FROM debian:bookworm AS build
|
||||||
|
|
||||||
RUN node -v
|
RUN node -v
|
||||||
|
|
||||||
# make the 'app' folder the current working directory
|
# make the 'app' folder the current working directory
|
||||||
WORKDIR bbuddy_ui_master
|
CMD [ "pwd" ]
|
||||||
|
WORKDIR /app
|
||||||
|
CMD ['pwd']
|
||||||
|
#COPY dist
|
||||||
|
|
||||||
COPY . .
|
#FROM nginx
|
||||||
|
#COPY --from=build dist/ /usr/share/nginx/html/
|
||||||
|
|
||||||
FROM nginx
|
#RUN rm /etc/nginx/conf.d/default.conf
|
||||||
COPY --from=build bbuddy_ui_master/dist/ /usr/share/nginx/html/
|
#COPY _nginx/nginx.conf /etc/nginx/conf.d
|
||||||
|
|
||||||
RUN rm /etc/nginx/conf.d/default.conf
|
|
||||||
COPY _nginx/nginx.conf /etc/nginx/conf.d
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,31 +0,0 @@
|
||||||
FROM node:20-bullseye AS build
|
|
||||||
|
|
||||||
RUN node -v
|
|
||||||
|
|
||||||
# make the 'app' folder the current working directory
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
COPY . .
|
|
||||||
FROM nginx
|
|
||||||
COPY --from=build /app/build/ /usr/share/nginx/html/
|
|
||||||
|
|
||||||
RUN rm /etc/nginx/conf.d/default.conf
|
|
||||||
COPY _nginx/nginx.conf /etc/nginx/conf.d
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
FROM ubuntu:22.04
|
|
||||||
|
|
||||||
USER root
|
|
||||||
|
|
||||||
RUN apt-get update ;\
|
|
||||||
apt-get -y install lsb-release procps wget sudo git apt-transport-https ca-certificates curl gnupg2 software-properties-common
|
|
||||||
|
|
||||||
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg ;\
|
|
||||||
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian bookworm stable" | sudo tee /etc/apt/sources.list.d/docker.list ;\
|
|
||||||
apt-get update ;\
|
|
||||||
apt-get -y install docker-ce docker-ce-cli docker-ce-rootless-extras docker-buildx-plugin
|
|
||||||
|
|
||||||
RUN sudo curl -sL https://deb.nodesource.com/setup_20.x -o nodesource_setup.sh ;\
|
|
||||||
sudo bash nodesource_setup.sh ;\
|
|
||||||
apt-get -y install nodejs
|
|
Loading…
Reference in New Issue