-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile.gulp
More file actions
29 lines (23 loc) · 854 Bytes
/
Dockerfile.gulp
File metadata and controls
29 lines (23 loc) · 854 Bytes
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
FROM node:10
LABEL maintainer "Ernesto Ruge <mail@ernestoruge.de>"
ENV DEBIAN_FRONTEND noninteractive
ENV LANG en_US.utf8
ENV LC_ALL en_US.utf8
ENV LANGUAGE en_US.utf8
RUN apt-get update && \
apt-get install -y locales apt-utils && \
locale-gen en_US en_US.UTF-8 && \
echo -e 'LANG="en_US.UTF-8"\nLANGUAGE="en_US:en"\n' > /etc/default/locale && \
apt-get dist-upgrade -y && \
apt-get autoremove -y && \
apt-get clean
RUN groupadd -g 1002 webdev
RUN useradd -u 1002 -g webdev -m -d /home/webdev -s /bin/bash webdev
ENV HOME /home/webdev
RUN rm -rf /app/node_modules
RUN mkdir /app && chown webdev:webdev /app
WORKDIR /app
COPY --chown=webdev:webdev . /app
RUN ln -s /app/node_modules/gulp/bin/gulp.js /usr/bin/gulp
RUN ln -s /app/node_modules/webpack/bin/webpack.js /usr/bin/webpack
USER webdev