mirror of
https://github.com/docker/awesome-compose.git
synced 2025-04-26 10:43:35 +02:00
27 lines
502 B
Docker
Executable file
27 lines
502 B
Docker
Executable file
# syntax=docker/dockerfile:1.4
|
|
FROM --platform=$BUILDPLATFORM node:14.4.0-alpine AS development
|
|
|
|
RUN mkdir /project
|
|
WORKDIR /project
|
|
|
|
COPY . .
|
|
|
|
RUN yarn global add @vue/cli
|
|
RUN yarn install
|
|
ENV HOST=0.0.0.0
|
|
CMD ["yarn", "run", "serve"]
|
|
|
|
FROM development as dev-envs
|
|
RUN <<EOF
|
|
apk update
|
|
apk add git
|
|
EOF
|
|
|
|
RUN <<EOF
|
|
addgroup -S docker
|
|
adduser -S --shell /bin/bash --ingroup docker vscode
|
|
EOF
|
|
# install Docker tools (cli, buildx, compose)
|
|
COPY --from=gloursdocker/docker / /
|
|
CMD ["yarn", "run", "serve"]
|
|
|