Dockerfile
This commit is contained in:
22
Dockerfile
Normal file
22
Dockerfile
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
FROM archlinux:latest
|
||||||
|
|
||||||
|
# Ngăn pacman hỏi khi cài
|
||||||
|
ENV DEBIAN_FRONTEND=noninteractive \
|
||||||
|
DOCKER_HOST=unix:///var/run/docker.sock
|
||||||
|
|
||||||
|
# Cập nhật và cài Docker CLI + Node.js + yarn
|
||||||
|
RUN pacman -Syu --noconfirm \
|
||||||
|
docker \
|
||||||
|
nodejs \
|
||||||
|
npm \
|
||||||
|
yarn \
|
||||||
|
git \
|
||||||
|
&& pacman -Scc --noconfirm
|
||||||
|
|
||||||
|
# Kiểm tra phiên bản
|
||||||
|
RUN docker --version && node --version && npm --version && yarn --version
|
||||||
|
|
||||||
|
# Thư mục làm việc mặc định
|
||||||
|
WORKDIR /workspace
|
||||||
|
|
||||||
|
CMD [ "bash" ]
|
||||||
Reference in New Issue
Block a user