fix: Updated Dockerfile. Referenced in #1826 (#1828)

update-deps-once-again-zzz
Alex 2020-07-06 21:52:13 -05:00 zatwierdzone przez GitHub
rodzic f1606706c4
commit 780db2be22
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 7 dodań i 14 usunięć

Wyświetl plik

@ -1,23 +1,16 @@
# Using Alpine to keep the images smaller # Using Alpine to keep the images smaller
FROM alpine:latest # Change to using the official NodeJS Alpine container
FROM node:alpine
# Pushing all files into image # Pushing all files into image
WORKDIR /app WORKDIR /app
ADD . /app COPY . /app
# Install updates and NodeJS+Dependencies
RUN apk add --update --no-cache --virtual build-dependencies git python build-base clang \
# Install updates and NodeJS+Dependencies
&& apk add --update --no-cache nodejs npm \
# Install yarn
&& npm i yarn -g \
# Install Pinafore # Install Pinafore
&& yarn --production --pure-lockfile \ RUN yarn --production --pure-lockfile && \
&& yarn build \ yarn build && \
&& yarn cache clean \ yarn cache clean && \
&& rm -rf ./src \ rm -rf ./src ./docs ./tests ./bin
# Cleanup
&& apk del build-dependencies
# Expose port 4002 # Expose port 4002
EXPOSE 4002 EXPOSE 4002