Update pinafore build
This commit is contained in:
parent
d96cd46987
commit
8a284bbe63
|
@ -1,5 +1,5 @@
|
||||||
# Using Alpine to keep the images smaller
|
# Using Alpine to keep the images smaller
|
||||||
FROM arm64v8/alpine:latest
|
FROM arm64v8/node:alpine
|
||||||
|
|
||||||
ARG TAG
|
ARG TAG
|
||||||
ARG VERSION
|
ARG VERSION
|
||||||
|
@ -13,19 +13,11 @@ RUN tar zxf v$TAG.tar.gz \
|
||||||
&& mv pinafore-$TAG/* . \
|
&& mv pinafore-$TAG/* . \
|
||||||
&& rm -rf pinafore-$TAG
|
&& rm -rf pinafore-$TAG
|
||||||
|
|
||||||
# Install updates and NodeJS+Dependencies
|
|
||||||
RUN apk add --update --no-cache --virtual build-dependencies git python3 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 --network-timeout=30000 \
|
||||||
&& yarn build \
|
&& yarn build --network-timeout=30000 \
|
||||||
&& 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
|
||||||
|
|
Loading…
Reference in a new issue