-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
31 lines (23 loc) · 920 Bytes
/
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
FROM kaizendorks/vue:4 AS development
LABEL maintainer="https://github.com/kaizendorks"
RUN apk upgrade \
&& apk add docker
FROM development AS ci
WORKDIR /home/node
USER node
# Create a sample app
RUN vue create app -i '{"useConfigFiles": true, "plugins": {"@vue/cli-plugin-unit-jest": {}}}'
RUN mkdir -p /home/node/app/node_modules
WORKDIR /home/node/app
# Install vuedock
COPY . /vuedock
# TODO: open an Issue/PR in the vue-cli repo, so "vue invoke" can make use of optionalDependencies, currently we see:
# Error: Cannot resolve plugin vue-cli-plugin-vuedock from package.json. Did you forget to install it?
# This would allows us to remove the dummy package.json
RUN yarn add --dev file:/vuedock \
&& vue invoke vue-cli-plugin-vuedock -d \
&& rm -rf package.json node_modules
COPY ./test/package.json ./package.json
USER root
# Hack around to dgoss test short living images
CMD ["sleep", "1d"]