-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
37 lines (30 loc) · 1.06 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# docker build -t vscode-plugin-dartsass:12.14.1-alpine3.11 .
# https://hub.docker.com/_/node?tab=tags
ARG NODE_VERSION=12.14.1-alpine3.11
FROM node:${NODE_VERSION}
RUN apk add python make g++ && \
node --version && \
npm --version
RUN echo "npm updated on Mar 25 2020" && \
npm install -g npm
ENV VSCE_VERSION=1.74.0
RUN echo "vsce @ ${VSCE_VERSION}" && \
npm install -g vsce@${VSCE_VERSION}
ARG DEVEL_USER=develop
RUN cat /etc/os-release && \
adduser -g "" -D ${DEVEL_USER} && \
adduser ${DEVEL_USER} node && \
id ${DEVEL_USER}
# The version of sass 1.19.0 has no significance except that it is not the
# latest version of sass
# ( see package.json to confirm the latest version of sass ).
# This binary inside the container image is used
# primarily for testing purposes only.
ARG SASS_VERSION=1.19.0
RUN npm install -g [email protected]
USER ${DEVEL_USER}
WORKDIR /home/${DEVEL_USER}
RUN vsce --version && npm --version
WORKDIR /tmp
ENTRYPOINT /bin/sh -c "while true; do echo hello; sleep 100; done"
# docker-compose up --force-recreate -d --remove-orphans