Skip to content

Dockerfile 내용 좀 부탁드립니다. #7

Discussion options

You must be logged in to vote

@hkh8308kevin 님, 안녕하세요!
실습에서 사용한 Dockerfile 입니다.

ARG ARCH=
FROM ${ARCH}node:16.13.2-alpine3.14

ENV NODE_VERSION 16.13.2
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
RUN apk update
RUN apk --no-cache add curl
RUN apk add iproute2
COPY . .
EXPOSE 8080
CMD ["npm", "start"]

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by yoonjeong-kwon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants