Docker-ImageManagementOptim.../os/ubuntu/Dockerfile

17 lines
297 B
Docker

# Dockerfile.ubuntu
FROM ubuntu:22.04
RUN apt-get update && \
apt-get install -y curl && \
curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
apt-get install -y nodejs
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 3000
CMD ["node", "app/index.js"]