17 строки
437 B
Docker
17 строки
437 B
Docker
FROM vladikoff/fxa-slim-image:latest
|
|
|
|
RUN adduser --disabled-password --gecos '' fxa && adduser fxa sudo && echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
|
|
|
|
COPY . /home/fxa/fxa-content-server
|
|
WORKDIR /home/fxa/fxa-content-server
|
|
RUN chown -R fxa .
|
|
USER fxa
|
|
RUN npm install --production \
|
|
&& cp server/config/local.json-dist server/config/local.json \
|
|
&& npm cache clear
|
|
|
|
CMD npm run start-production
|
|
|
|
# Expose ports
|
|
EXPOSE 3030
|