Attmpt fixes on docker build/volume map
This commit is contained in:
+14
-8
@@ -106,18 +106,16 @@ RUN apk add --no-cache --virtual .build-deps-yarn curl gnupg tar \
|
||||
COPY docker-entrypoint.sh /usr/local/bin/
|
||||
# ENTRYPOINT ["docker-entrypoint.sh"]
|
||||
|
||||
# Create app directory
|
||||
RUN mkdir -p /app
|
||||
|
||||
# set working directory
|
||||
# Set working directory
|
||||
WORKDIR /app
|
||||
|
||||
# install app dependencies
|
||||
COPY package.json /app
|
||||
# Install app dependencies
|
||||
COPY package.json /app/
|
||||
|
||||
# add app
|
||||
COPY . ./app
|
||||
|
||||
# install app dependencies
|
||||
# Install app dependencies
|
||||
RUN npm install --save
|
||||
RUN npm install react-scripts
|
||||
RUN npm install -g next
|
||||
@@ -125,6 +123,14 @@ RUN npm install sharp
|
||||
RUN npm install react-modal-video
|
||||
RUN npm install wowjs
|
||||
|
||||
# Bundle app source
|
||||
COPY . /app
|
||||
RUN cp -a /app/. /app_backup
|
||||
|
||||
RUN chmod a+x /usr/local/bin/docker-entrypoint.sh
|
||||
|
||||
EXPOSE 3000
|
||||
ENTRYPOINT [ "/usr/local/bin/docker-entrypoint.sh" ]
|
||||
|
||||
#CMD ["sh", "-c", "next build && next start"]
|
||||
CMD [ "npm" ,"run","dev"]
|
||||
CMD [ "npm" ,"run","dev"]
|
||||
|
||||
Reference in New Issue
Block a user