Skip to content

Commit

Permalink
Remove cmd from dockerfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
fergmac committed Sep 26, 2024
1 parent 2ba5ee0 commit 85af674
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,28 +1,21 @@
# FROM node:14.21.3 AS build
FROM node:14.21.3

RUN echo "Start of Dockerfile"

RUN apt-get update

RUN echo "Post apt-get update, pre install"

RUN apt-get install -y git build-essential python3 python3-pip make g++

WORKDIR /app

COPY package*.json ./

RUN echo "npm install"
RUN npm install

COPY . /app

RUN npm run build

RUN echo "CMD to run"
CMD run sh -c "echo 'Dockerfile Command' && \
npm run serve"
# CMD run sh -c "npm run serve"

# FROM node:14.21.3

Expand Down

0 comments on commit 85af674

Please sign in to comment.