1
0
mirror of https://github.com/games-on-k8s/docker-factorio.git synced 2024-11-16 17:42:04 +02:00

Change ordering of ARG/ENV for better caching

This commit is contained in:
Greg Taylor 2017-04-29 23:44:32 -07:00
parent 43e3a6861e
commit 7201482cac

View File

@ -1,14 +1,14 @@
FROM ubuntu:16.04
MAINTAINER Greg Taylor <gtaylor@gc-taylor.com>
ARG factorio_version
ENV VERSION $factorio_version
RUN apt-get update && apt-get dist-upgrade -y && \
apt install -y python3 xz-utils && apt-get clean
WORKDIR /opt
ARG factorio_version
ENV VERSION $factorio_version
COPY entrypoint.sh gen_config.py factorio.crt /opt/
COPY factorio_headless_x64_$VERSION.tar.xz /tmp/factorio_headless.tar.xz