I have a dockerfile.
FROM node:14.15.1-alpine as build
RUN apk add git
WORKDIR /app
COPY ./public/package.json /app/package.json
RUN yarn install
COPY ./public /app
RUN yarn build
FROM nginx:1.16.0-alpine
COPY --from=build /app/build /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
I run it using
docker build -t hypercube-front:latest . -f deploy/front-Dockerfile
docker run --name hypercube-front -d -p 3006:80 --rm hypercube-front:latest
Because of this, we caught a miner on the server - kdevtmpfs.
How can I run this docker file with docker-compose up so I don't get this virus anymore?
Sorry, but I'm new to docker, so the question might seem silly.